Simple project that highlights a simple authentication flow using the NextAuth.js framework.
-
Generate a random secret at https://generate-secret.vercel.app/32. Copy the secret.
-
Create a
.env
file.cp .env-example .env vi .env # Paste the secret as NEXTAUTH_SECRET
-
Run the application.
npm install npm run dev
-
Navigate to http://localhost:3000.