Closed jmoseley closed 2 months ago
I'm assuming you're using one of the SDKs rather than the Next.js or Remix libraries, if not let me know!
You can use the state
parameter in the get authorization URL API route to record data like the return path. Then once the user has been authenticated in your callback route you can redirect them to the URL you saved in state
.
I'll give that a shot, thanks.
I have a flow where, in certain circumstances, I need the user to be sent to an alternate page after the login flow is complete.
If this was fixed, I would set the
returnPathname
property for the callback handler. But I need to be able to pass some state through the login flow so I can send the user to the right place depending on how they arrived at the app.For example:
For step 4, I am having trouble figuring out how I can pass through the state necessary to redirect the user back to the right place.