- Create a
.env.local
file with:API
pointing tohttp://localhost:3000/api
for local development.AUTH_SECRET
as per authjs docs.MONGODB_CONNECTION_STRING
with your own mongodb instance.
- Run with
npm run dev
.
- Protect a dummy API call with auth and roles.