Origin URL not persisted / redirect goes back to home
Unanswered
French Lop posted this in #help-forum
French LopOP
Hey all,
I am trying to do google auth flow with googlapis.
When 'integrate with google' button is clicked, I am doing a server side redirect to google and handling the response in a callback. It looks like the callback's request origin seems like the main page URL instead of the last url I visited.
Can you help me with what's the best way to resolve this?
I am trying to do google auth flow with googlapis.
When 'integrate with google' button is clicked, I am doing a server side redirect to google and handling the response in a callback. It looks like the callback's request origin seems like the main page URL instead of the last url I visited.
Can you help me with what's the best way to resolve this?
3 Replies
French LopOP
I'm not. This flow is actually for third party calendar integration rather than auth. Can I still use next-auth for it?
I'm calling googleapi's auth client in a server action upon a button click, and callback in a router