Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 644 Bytes

README.md

File metadata and controls

33 lines (25 loc) · 644 Bytes

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