Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.01 KB

create-a-signup-page.md

File metadata and controls

26 lines (17 loc) · 1.01 KB
layout title lang ref date comments_id
post
Create a Signup Page
en
create-a-signup-page
2017-01-18 16:00:00 -0800
create-a-signup-page/65

The signup page is quite similar to the login page that we just created. But it has a couple of key differences. When we sign the user up, [AWS Cognito]({% link _archives/create-a-cognito-user-pool.md %}) sends them a confirmation code via email. We also need to authenticate the new user once they've confirmed their account.

So the signup flow will look something like this:

  1. The user types in their email, password, and confirms their password.

  2. We sign them up with Amazon Cognito using the AWS Amplify library and get a user object in return.

  3. We then render a form to accept the confirmation code that AWS Cognito has emailed to them.

  4. We confirm the sign up by sending the confirmation code to AWS Cognito.

  5. We authenticate the newly created user.

  6. Finally, we update the app state with the session.

So let's get started by creating the basic sign up form first.