Skip to content

PhilJHazell2/auth-test

Repository files navigation

Cognito Username/Password Auth Prototype

This repo contains a prototype username and password signup field which when configured with AWS Cognito, allows users to sign up for a user account which is stored in a Cognito user pool.

The user can then also use /login to login into their created account.

This used v0 to create the frontend of the form and aws-sdk to provide the Cognito methods required to signup and authenticate the user at login.

To run this, add your cognito credentials to a .env file and then run npm run dev to run this locally.

Important FIles for prototype

  • /app/api/login/route.ts
  • /app/api/signup/route.ts
  • /lib/cognito.ts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors