Skip to content

Instantly share code, notes, and snippets.

@cagdas1
Created July 11, 2017 12:50
Show Gist options
  • Save cagdas1/6280ef2e56f64fcf09f50b4f8abcad3a to your computer and use it in GitHub Desktop.
Save cagdas1/6280ef2e56f64fcf09f50b4f8abcad3a to your computer and use it in GitHub Desktop.
AWS Cognito ANDROID-SDK for creating User
// 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