Giter Site home page Giter Site logo

aws-amplify-auth-starters's Introduction

This is the React Starter

To view the Vue starter, click here.

To view the React Native starter, click here.

AWS Amplify React Authentication Starter

This project includes:

  • User sign up
  • User sign in
  • 2 factor authentication
  • Real world auth flow using React Router
  • Protected routes
  • Redirects for unauthorized users
  • Time-based one time password (TOTP)

Getting started

Initial setup

  1. Make sure you are on a new version of the AWS Amplify CLI to be sure you have multiple environment support.
npm install -g @aws-amplify/cli
  1. clone the project
git clone https://github.com/aws-samples/aws-amplify-auth-starters.git
  1. Check out the React branch
git checkout react
  1. install dependencies using npm or yarn
npm install
  1. Start project
npm start

Setting up back end AWS services

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.

  1. From the root of the project, initialize the Amplify project
amplify init
  1. Create the resources in your account
amplify push

Enabling MFA

  1. Visit the Amazon Cognito User Pool Dashboard & click on your user pool.
amplify console auth
  1. Click on MFA & verifications

  2. Do you want to enable Multi-Factor Authentication (MFA)? Optional

aws-amplify-auth-starters's People

Contributors

jpeddicord avatar dabit3 avatar weisisheng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.