Skip to content

This is a simple example on how to use custom credentials on next-auth. I coded a custom login and registration form with the shadcn ui

License

Notifications You must be signed in to change notification settings

maxi-schaefer/NextAuth-Example

Repository files navigation

NextAuth-Example

This is a simple example on how to use custom credentials on next-auth. I coded a custom login and registration form with the shadcn ui

What to do?

  1. Start with cloning this repository
git clone https://github.com/maxi-schaefer/NextAuth-Example
  1. Install the needed dependencies
npm install
  1. Change your DATABASE_URL and NEXTAUTH_SECRET in .env
DATABASE_URL="POSTGRESQL_LINK"

# Next Auth variables
NEXTAUTH_SECRET = "SOME_RANDOM_STRING"
  1. Start your development server
npm run dev

Register

Login

About

This is a simple example on how to use custom credentials on next-auth. I coded a custom login and registration form with the shadcn ui

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published