How to pass URL parameter after login?

Hello.

I want to pass query parameters. There are a website user must login to Auth0.

e.g. http://example.com/?id=1234

A user accesses that URL, then user opens Auth0 login page.
After login success, Auth0 overwrites the parameter

http://example.com/?code=vbh-qGAbzU-xxxxxxx&state=QmdyemJ5SkU1aXRBd0…

How can I pass the URL parameter after user login?

Thanks.

Hi @yousan,

I would recommend storing these parameters in the State or a cookie/browser session - and then your app can decode this and redirect the authenticated user to the appropriate page with the right querystring in place.
Please see here for some more detail on the two methods: https://auth0.com/docs/users/redirect-users-after-login

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.