Constructor for creating an instance of a class with an AuthenticatorDatasource.
The datasource used for authentication.
None
A boolean flag indicating whether the user is currently authenticating.
Logs in the user using the provided options.
The login options.
The email of the user.
The password of the user.
Optional
callbackUrl?: stringThe URL to redirect to after login.
Optional
email?: stringThe email of the user.
Optional
optContext?: anyAdditional context information for the login.
A promise that resolves with the login response.
Initiates a federation login process with the provided authorization code and redirect URL.
The authorization code obtained from the federation provider.
The URL to redirect to after the login process.
A promise that resolves with the response data from the federation login.
Initiates a Single Sign-On (SSO) login process using the provided code.
The code required for SSO login.
A promise that resolves with the response data from the SSO login.
Logs out the user from the current session.
Optional
optionalPostLogoutURL: stringOptional URL to redirect to after logout.
Optional
keepQueryContext: boolean = trueFlag to determine whether to keep query context.
True if logout was successful, false otherwise.
Responds to Multi-Factor Authentication (MFA) and login challenges for the given email and SRP ID.
The email address associated with the authentication.
The SRP ID for the authentication challenge.
The context of the authentication challenge.
The code for the MFA challenge.
A promise that resolves with the authentication response.
Class representing an Authenticator for handling authentication operations.