Why is the state parameter not available in Auth0 Pre-Registration Hook?

I want to use the following Auth0 authorization URL:

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

However, when I navigate to the Auth0 page using this URL and include the state parameter, I noticed that the state value is not available in the Pre-Registration Hook.

Hi @norbert.juhasz,

Welcome to the Auth0 Community!

Can you confirm you are talking about Hooks? Please note that Hooks/Rules are now read-only ahead of their deprecation. If you are referring to the Pre-User Registration Action Trigger, unfortunately, it is not possible to access query string parameters. Please see here for more: Accessing Query String Parameters in a Pre-User Registration Action

Thanks,

Mary Beth

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