You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to implement next-auth using Next.js 14. The method I want to achieve is:
When I call localhost:3000/api/login, I want to see console.log("start authorize !!!!") in the console.
However, while it works correctly when implemented in CSR, it doesn't work when I try to implement it in SSR. Is there something I'm doing wrong?
[app/api/login/route.ts]
[app/api/auth/[...nextauth]/route.ts]
Does anyone know why this behavior is different between SSR and CSR? Any guidance would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions