Edit in Eraser

Auth in Next.js

This demo uses next-auth to add authentication to this Next.js app. We used the GitHub provider and added in the Prisma 2 provider to allow users/sessions/accounts to be stored in a Postgres database rather than stricly within the JWT (JSON Web Token).


Diagram