Giter Site home page Giter Site logo

assafdd / react-authentication-in-depth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dabit3/react-authentication-in-depth

0.0 2.0 0.0 742 KB

Example of User Authentication using React with React Router and AWS Amplify

JavaScript 96.82% HTML 2.31% CSS 0.87%

react-authentication-in-depth's Introduction

React Authentication Example

This repo goes along with the blog post React Authentication in Depth

Completed Project

This project features:

  • User sign up
  • User sign in
  • 2 factor authentication
  • Real world auth flow using React Router
  • Protected routes
  • Redirects for unauthorized users
  • TOTP

Getting started

  1. clone the project
git clone https://github.com/dabit3/react-authentication-in-depth.git
  1. install dependencies using npm or yarn
yarn || npm i
  1. Start project
npm start

Setting up 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, create awsmobile project
awsmobile init
  1. add user sign-in / authentication (Amazon Cognito)
awsmobile user-signin enable
  1. push new services to console
awsmobile push

react-authentication-in-depth's People

Contributors

dabit3 avatar

Watchers

James Cloos avatar Assaf Dagan 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.