Skip to content

Showcase for implementing passwordless authentication or connecting Cognito to external user database

Notifications You must be signed in to change notification settings

pmishra/Passwordless-Authentication-with-React-and-AWS-Amplify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Passwordless serverless authentication with React, AWS Amplify and AWS Cognito

In this example we're showing how to integrate existing database with user data using React and AWS Amplify with AWS Cognito. With this setup it is not only possible to query already existing database, but also to implement fully passwordless authentication, by sending tokens to users channel of choice (SMS or Email). Our implementation differs from the implementation found in the original post not only by frameworks used, but also by approach. In the original post, the authors implement passwordless authentication by sending a randomly generated token to users email address. They accomplish this with Typescript and Angular. In our approach, we focus on connecting already existing database containing user data with AWS Cognito using React.js. The only difference found in both aprooach (with the exception of choice of frameworks) lies in create-auth-challenge lambda, which in our case queries external database (mongoDB).

Based on https://github.com/aws-samples/amazon-cognito-passwordless-email-auth and https://aws.amazon.com/blogs/mobile/implementing-passwordless-email-authentication-with-amazon-cognito/

About

Showcase for implementing passwordless authentication or connecting Cognito to external user database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.1%
  • HTML 10.9%
  • CSS 6.0%