Login with query param

Hi!
Im trying to pass a query param through my universal login page, I have this direct url to my login form: https://test.app.myapp/auth/login and i want to have something like, https://test.app.myapp/auth/login?param=1, but the redirect of auth0 remove that extra param

Hi @hector.escalona,

Welcome to the Auth0 Community!

It may be possible to accomplish this by calling your custom param with the /authorize endpoint:

https://{yourDomain}/authorize?
    response_type=code&
    client_id={yourClientId}&
    redirect_uri={https://yourApp/callback}&
    scope={scope}&
    state={state}&
    param=1

Could you give it a try and see if this works?

Thanks,
Rueben

Hi Rouben, thanks for your reply!
Sadly, I still having the same issue, using the url that you just told me. I will try using a custom login to see is there is any diference.

Thanks!

Hi @hector.escalona,

Thank you for your reply.

After further testing, I found that this behavior is expected. After a successful login, the user is redirected to the callback URL with the state parameter.

Before going further, could you please clarify what you intend to do with the query parameter for login?

Could we attach this data to the user_metadata before login and perform the logic post-login?

Thanks,
Rueben