How to read auth0 state parameter

Thanks for replying… I understand the state concept and I have no issue with implementing it.

I am implementing a flow where I need to know user’s last location from where app initiated the login. this last location is passed by apps in state parameter while redicrecting to /authorize endpoint. this state values gets encoded and sent with /login endpoint. Now on this login page I need to know what was the original state value that app sent while redirecting to /authorize endpoint.

The purpose of this to achieve deep linking in registration flow. I want to retain the state so that I can redirect my user back to the page after email verification from where they started.

I asked another question with more detailed flow I am trying to acheive here but unfortunatly got no suggestion so far. How to read state that application sent to /authorize endpoint

I will really appritiate if you can show me some direction.

Thanks

1 Like