https://github.com/mdcodelab/next-custom-auth
Complete custom auth: username & password, email verification, change password.
https://github.com/mdcodelab/next-custom-auth
brevo-api jwt nextjs prisma shadcn-ui sqlite tailwindcss
Last synced: 7 months ago
JSON representation
Complete custom auth: username & password, email verification, change password.
- Host: GitHub
- URL: https://github.com/mdcodelab/next-custom-auth
- Owner: mdcodelab
- Created: 2024-08-17T08:06:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-22T15:51:08.000Z (over 1 year ago)
- Last Synced: 2025-03-26T02:11:14.126Z (11 months ago)
- Topics: brevo-api, jwt, nextjs, prisma, shadcn-ui, sqlite, tailwindcss
- Language: JavaScript
- Homepage:
- Size: 167 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Workflow:
1. On the Register page, the user creates an account by providing his name, email, and password. The user is assigned an email verification token and is redirected to a page that informs them that they need to verify their email.
2. By clicking the link in the email inbox, the user's email is verified (emailVerified=true), and the user can then log in.
3. Logging in with an email and password assigns the user a JWT token and a cookie, which grant the status of a logged-in user. The user is then directed to protected pages, with emailVerified=true and the auth-token in place.
4. The Sign Out action is performed by deleting the cookie from the user's browser.