This repo goes along with the blog post React Authentication in Depth
- User sign up
- User sign in
- 2 factor authentication
- Real world auth flow using React Router
- Protected routes
- Redirects for unauthorized users
- TOTP
- clone the project
git clone https://github.com/dabit3/react-authentication-in-depth.git
- install dependencies using npm or yarn
yarn || npm i
- Start project
npm start
If you do not have your AWS services already created, follow these steps. If you already have your services set up, just configure your aws-exports.js file.
- from the root of the project, create awsmobile project
awsmobile init
- add user sign-in / authentication (Amazon Cognito)
awsmobile user-signin enable
- push new services to console
awsmobile push