Replies: 1 comment
-
Hey @gopinav, It seems like you have a typo. Your callbackUrl parameter should be Callback url is being checked against the base url of the app using String.prototype.startsWith() as far as I know and that's what's causing this behaviour as it defaults to just the base url. Hence, you are redirected to the home page. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to add a 'route guard' if you can call it that by checking if session is not null in getServerSideProps and redirecting to the built in signin page. Although that works, I'm always redirected to the home page after signing in. I tried to add the callbackUrl query parameter as you can see below but it still doesn't work as expected. How do I achieve this? Thanks in advance.
blog.js
Beta Was this translation helpful? Give feedback.
All reactions