Cognito - Sign-Up

Card Puncher Data Processing



Cognito - Amplify Auth Component

aws amplify sign-up

import { Auth } from 'aws-amplify';

    attributes: {
        email,          // optional
        phone_number,   // optional - E.164 number convention
        // other custom attributes 
    validationData: []  //optional
    .then(data => console.log(data))
    .catch(err => console.log(err));

// After retrieving the confirmation code from the user
Auth.confirmSignUp(username, code, {
    // Optional. Force user confirmation irrespective of existing alias. By default set to True.
    forceAliasCreation: true    
}).then(data => console.log(data))
  .catch(err => console.log(err));

Auth.resendSignUp(username).then(() => {
    console.log('code resent successfully');
}).catch(e => {

The Auth.signUp promise returns a data object of type ISignUpResult with a CognitoUser.

    user: CognitoUser;
    userConfirmed: boolean;
    userSub: string;

Js Auth

The hosted sign up forms of the Cognito - Js Auth Sdk library.

Cognito Js Auth Sign Up

Discover More
Card Puncher Data Processing
Aws - Cognito

IAM (Identity Access Management) in Aws Account management where: user pool is a user directory service to handle: user registration, authentication, and account recovery. identity...
Cognito Registration Confirmation
Cognito - Account Confirmation (verifyContact)

The verifyContact state Account confirmation occurs either using : the email verification process (After users submit their registration (sign-up), Amazon Cognito will send a confirmation email with:...
Card Puncher Data Processing
Cognito - Amplify Auth Component

Auth is a sub-component (called a category) of the amplify library and is a wrapper around amazon-cognito-identity-js All methods are available in the Auth...
Card Puncher Data Processing
Cognito - Authentication state (Lifecycle)

in Cognito authState is the current authentication state (a string): signIn for signUp for for confirmSignIn confirmSignUp forgotPassword verifyContact for signedIn when signedIn
Card Puncher Data Processing
Cognito - Email

Amazon Cognito sends an email when: A user signs up. A user updates their email address. A user performs an action that calls the ForgotPassword API action. You create a user account as an administrator....
Cognito Js Auth App Client Settings
Cognito - Js Auth Sdk

This page is the Cognito Javascript Auth SDK (Amazon Cognito Auth SDK) It leverages the built-in hosted UI webpages: , , , multi-factor authentication...
Card Puncher Data Processing
Cognito - UI

UI forms in Cognito To reduce the operational overhead of creating and maintaining forms and custom logic for authentication, Cognito has a hosted-UI that leverages pages for: sign-up, sign-in,...

Share this page:
Follow us:
Task Runner