Created
July 11, 2017 12:50
-
-
Save cagdas1/6280ef2e56f64fcf09f50b4f8abcad3a to your computer and use it in GitHub Desktop.
AWS Cognito ANDROID-SDK for creating User
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create a handler for registration | |
SignUpHandler handler = new SignUpHandler() { | |
@Override | |
public void onSuccess(CognitoUser user, CognitoUserCodeDeliveryDetails codeDeliveryDetails) { | |
// If the sign up was successful, "user" is a CognitoUser object of the user who was signed up. | |
// "codeDeliveryDetails" will contain details about where the confirmation codes will be delivered. | |
} | |
@Override | |
public void onFailure(Exception exception) { | |
// Sign up failed, code check the exception for cause and perform remedial actions. | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment