AuthContainer.login() method
Login user with password.
Signature:
login(loginID: string, password: string, options?: {
loginIDKey?: string;
}): Promise<User>;
Parameters
Parameter | Type | Description |
---|---|---|
loginID | string | Login ID |
password | string | Password |
options | { loginIDKey?: string; } | Login options |
Returns:
Promise<User>
Example
// Login with email
await login("test\@example.com", "password");
// Login with username
await login("test", "password");