-
Hi guys. Apologies for the dumb question! I've just integrated NextAuth with Google OAuth and it signs in and out fine (it redirects correctly on sign out), but the sign in never redirects to /app/main. It WAS working, but I took the login.tsx page out of page/auth/ and placed it a level higher in pages/ and it stopped redirecting. I adjusted the path accordingly but...it just goes to /login# instead of /app/main. I'm doing something dumb but I've updated the necessary paths so it's mind boggling to me. Here's the code;
I've changed the callbackUrl to be absolute and also did a router.push('/app/main') but it just always goes to /login# |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Seems absolute hard coded URLs were the way to solve this. Thanks all. |
Beta Was this translation helpful? Give feedback.
Seems absolute hard coded URLs were the way to solve this. Thanks all.