public interface AuthHandler
Auth.| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(java.lang.Exception e)
Invoked to report errors during interaction with Cognito Auth Server.
|
void |
onSignout()
This method is invoked when a user has successfully signed-out, invoked as a response to
Auth.signOut(). |
void |
onSuccess(AuthUserSession session)
Invoked after successful authentication or when valid cached tokens are available.
|
void onSuccess(AuthUserSession session)
Note: When the Cognito Web login screen is presented, the users can use any
username to authenticate. To get the username used for authentication,
Alternatively,the username can also be found with the key
cognito:username in the PAYLOAD section of the Cognito Id and Access JWT.
session - Required: AuthUserSession.void onSignout()
Auth.signOut().void onFailure(java.lang.Exception e)
e - Required: Indicates the cause of the failure.