Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

A sample implementation of Passwordless E-Mail Auth in Amazon Cognito

License

Notifications You must be signed in to change notification settings

aws-samples/amazon-cognito-passwordless-email-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

UPDATE 2023, July 10th

We have published a new Passwordless sample solution that includes WebAuthn (FIDO2, Passkeys) and e-mail Magic Links: https://github.com/aws-samples/amazon-cognito-passwordless-auth

The repository here, the one you're looking at now, is still a good reference for implementing e-mail OTP (One Time Password). Be aware though: we haven't updated this repository in a while, so e.g. dependencies are outdated! Only use the repository here to get an idea on "how to do it".


Amazon Cognito Passwordless Email Auth

This is the sample code that comes together with the blog post on passwordless e-mail auth in Amazon Cognito.

The purpose of this sample code is to demonstrate how Amazon Cognito Custom Authentication Flows can be used to implement passwordless e-mail auth. Please treat the code as an illustration––thoroughly review it and adapt it to your needs, if you want to use it for serious things.

The sample code is contained in these folders. Please visit these and run the sample solution:

  • ./cognito: a Serverless Application that includes a Cognito user pool with the necessary setup
  • ./client: a Web Client that authenticates with the Cognito user pool

License Summary

This sample code is made available under a modified MIT license. See the LICENSE file.

About

A sample implementation of Passwordless E-Mail Auth in Amazon Cognito

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published