The Authenticator works seamlessly with the Amplify CLI to automatically work with your backend.
npm install -g @aws-amplify/cli@latest
By default, unauthenticated users are redirected to the Sign In flow. You can explicitly redirect to Sign Up or Reset Password:
Sign Up Attributes
The Authenticator automatically infers
but can be explicitly defined as seen below.
The Authenticator automatically renders most Cognito User Pools attributes,
with the exception of
zoneinfo. Because these are often app-specific, they can be customized via Sign Up fields.
By default, the Authenticator will still require any attributes required for
verification, such as
signUpAttributes is empty:
Labels & Text
Sign Up Fields
Force New Password Fields
The following example customizes the Force New Password screen by:
- Re-using the default Force New Password form fields
- Appending a custom "Zone Info" text field