steven-tey / precedent

An opinionated collection of components, hooks, and utilities for your Next.js project.
https://precedent.dev
MIT License
4.65k stars 406 forks source link

fixed next auth jwt session error ✅ #82

Open Ajay01103 opened 2 months ago

Ajay01103 commented 2 months ago

I was testing the this repository and found a bug in jwt session. When the jwt session exires and tried to login again it wont end up with successfull login and it shows this error in the terminal which is like that

image

Finally I catched the bug and it was inside app/api/auth/[...nextauth]/route.ts and fixed that bug and after that no error and it worked fine

vercel[bot] commented 2 months ago

@Ajay01103 is attempting to deploy a commit to the Elegance Team on Vercel.

A member of the Team first needs to authorize it.