How can I pass a query string parameter back to the /continue endpoint?

I’m aware that it’s not advised to pass data from the front channel back to Auth0, to the /continue endpoint, via URL (query string) parameters. However, this is what I need, to send something non-sensitive. I don’t want to go to the hassle of creating and signing a JWT to send back, as this article describes.

If I just redirect to:

https://auth/mysite.com/continue?state=<state>&foo=bar

…how can I access foo in the onContinuePostLogin action?

Many thanks in advance.

Hi @kkrp1,

Thanks for your question.

I have reviewed all the available properties in the post-login event object and found the event.request.query property which returns query parameters passed in a request.

I have tested this and confirmed you can access your query parameter by calling event.request.query.foo.

Let me know if you have any questions.

Thanks,
Rueben

Thanks @rueben.tiow, that’s perfect :ok_hand:.

1 Like