'Next.js - NextAuth throws error in Vercel
My next-auth works fine until a certain time. 
But then, its throwing (The red session text in the picture above)
GET https://yazankasa-eng.vercel.app/api/auth/session 504 [next-auth][error][client_fetch_error]
https://next-auth.js.org/errors#client_fetch_error session SyntaxError: Unexpected token A in JSON at position 0
And it says "An unexpected error has occurred." on the screen. Is there any way I can deal with this? Thanks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
