This is and example site to demostrate how to use NextAuth.js with a separated backend from next js using the Custom Adapter Aproach.
git clone https://github.com/NanddoSalas/next-auth-custom-backend-example.git
cd next-auth-custom-backend-example
yarn install
Copy the .env.local.example
file into .env.local
and populate it
cp .env.local.example .env.local
Copy the .env.local
to the web
and server
packages
cp .env.local packages/web/.env.local
cp .env.local packages/server/.env.local
yarn dev