← All templatesAuth.js + Next.js + Prisma
Next.js with Auth.js Google sign-in and users stored via Prisma.
TypeScriptAuth & AIPostgres
Get the AI promptWhat you can build with it
- Public apps that need their own user accounts
- Per-user data and settings
- Partner or customer portals
What's inside
- Auth.js with Google provider
- Prisma adapter for users and sessions
Before you deploy
- Follow the instructions at https://authjs.dev/getting-started/providers/google to set up Google OAuth.
- Set
AUTH_GOOGLE_ID, AUTH_GOOGLE_SECRET as secrets with elula env secret. - Add a managed Postgres with
elula init --database; the connection string is injected as DATABASE_URL.
Source
github.com/prisma/prisma-examples/tree/latest/orm/authjs-nextjs