When using React Auth0 sdk, how to pass query string param to login URL


I am using react SDK loginWithRedirect to send the user to the login form. I would like to pass an extra parameter to the login form URL so that I can use it to customise the form (toggle on/off some fields). Is there a way to do so?


Hi @hello10,

You can pass extra params like this:

loginWithRedirect({ foo:'bar' })

Indeed, this is my bad I missed the parameters in the form URL and assumed they were removed somehow

1 Like

No problem! Glad it was resolved.

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