Action Flow Redirect

Using the action flow api.redirect.sendto is there a way in the action flow to get the state parameter that the continue endpoint will need?

Hi @jimseiwert,

Thanks for reaching out to the Auth0 Community!

Yes, but this does not happen inside your Post-Login Action script.

Instead, you will need to extract the state parameter that was appended to your redirect URL and send it back to Auth0 (/continue) to resume the authentication transaction.

In other words, when the user gets sent to the redirect URL, a state parameter is appended to it. For example, if the redirect URL is https://example.com/foo then when the user reaches that URL, the browser will show https://example.com/foo?state=abc123.

At that point, you will need to extract the state value and append it back to the /continue endpoint. For example: https://{yourDomain}/continue?state=abc123.

Reference: Redirect with Actions

I hope the explanation was clear!

Please let me know if you have any additional questions.

Thanks,
Rueben