NextAuth.js Google authentication stuck in loading state after server restart in Next.js app
I’m developing a Next.js app that utilizes NextAuth.js (^4.24.7) for Google authentication. Everything works fine initially, but I’m encountering an issue where after I close the server in VS Code and then restart it, NextAuth.js gets stuck in a loading state, i have to manually refresh the page to make it work normally.