authParameters
The authentication parameters. These are inputs corresponding to the AuthFlow that you're invoking.
The following are some authentication flows and their parameters. Add a SECRET_HASH parameter if your app client has a client secret. Add DEVICE_KEY if you want to bypass multi-factor authentication with a remembered device.
USER_AUTH
USERNAME(required)PREFERRED_CHALLENGE. If you don't provide a value forPREFERRED_CHALLENGE, Amazon Cognito responds with theAvailableChallengesparameter that specifies the available sign-in methods.
USER_SRP_AUTH
USERNAME(required)SRP_A(required)
ADMIN_USER_PASSWORD_AUTH
USERNAME(required)PASSWORD(required)
REFRESH_TOKEN_AUTH/REFRESH_TOKEN
REFRESH_TOKEN(required)
CUSTOM_AUTH
USERNAME(required)ChallengeName: SRP_A(when preceding custom authentication with SRP authentication)SRP_A: (An SRP_A value)(when preceding custom authentication with SRP authentication)
For more information about SECRET_HASH, see Computing secret hash values. For information about DEVICE_KEY, see Working with user devices in your user pool.