Redirecting to arbitrary route in auth0 callback #11555
Unanswered
aloukissas
asked this question in
Help
Replies: 2 comments 1 reply
-
So it looks like the auth0 library supports this (at least their docs say they do), but it doesn't seem to work in practice (i.e. you can pass a |
Beta Was this translation helpful? Give feedback.
0 replies
-
This might be what you want https://www.github.com/ThatConference/that-website/tree/master/pages%2Fapi%2Fcallback.js |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi folks,
I'm building a small app, based on the auth0 sample. What I haven't found out how to do is how to redirect to an arbitrary route in the post-login callback. For example, assume there is a protected route
/account
that I redirect to/api/login
as in the sample. I would like to pass a url parameter (e.g.?redirect=/account
) that the/api/callback
route takes and redirects me to/account
. Is that possible? It's a pretty common pattern in many web apps.Beta Was this translation helpful? Give feedback.
All reactions