Initialize Auth with AWS configurations
Configuration of the Auth
Change a password for an authenticated user
The CognitoUser object
the current password
the requested new password
Send MFA code to confirm sign in
The CognitoUser object
The confirmation code
Send the verification code to confirm sign up
The username to be confirmed
The verification code
other options for confirm signup
Get current authenticated user
Get current user's session
Get authenticated credentials of current user.
Get user information
Get current authenticated user
Delete the current authenticated user
Delete an authenticated users' attributes
disable SMS
the current user
enable SMS
the current user
Compact version of credentials
Initiate a forgot password request
the username to change password
Confirm a new password using a confirmation Code
The username
The confirmation code
The new password
This was previously used by an authenticated user to get MFAOptions, but no longer returns a meaningful response. Refer to the documentation for how to setup and use MFA: https://docs.amplify.aws/lib/auth/mfa/q/platform/js
the current user
get preferred mfa method
the current cognito user
options for getting the current user preferred MFA
Resend the verification code
The username to be confirmed
Metadata to be passed to Cognito Lambda triggers
Send the answer to a custom challenge
The CognitoUser object
The confirmation code
set preferred MFA method
the current Cognito user
preferred mfa method
Setup TOTP
the current user
Sign in
The username to be signed in or the sign in options
The password of the username
Client metadata for custom workflows
Sign out method @
Sign up with username, password and other attributes like phone, email
The user attributes used for signin
for the backward compatability
Update an authenticated users' attributes
Return user attributes
The CognitoUser object
Get the corresponding user session
The CognitoUser object
Confirm current user's attribute using a confirmation code
The attribute to be verified
The confirmation code
verify TOTP setup
the current user
challenge answer
Initiate an attribute confirmation request
The CognitoUser
The attributes to be verified
Confirm an attribute using a confirmation code
The CognitoUser
The attribute to be verified
The confirmation code
Provide authentication steps