Packages
NextAuth (Auth.js)
NEMO middleware functions for NextAuth (Auth.js)
Installation
Integrate NextAuth with your project using the official guides:
Auth.js Quickstart or Next.js App Example.
Just skip the part of setting up the middleware and follow the steps below.
Replace middleware.ts
code
We need to edit primary middleware.ts
file to use the new middleware function.
Just use the user
key inside storage as you need! 🎉