, how should I properly handle sending my user back to the initial protected page?
05/12/2022, 8:40 PM
You can store which page the user came from in local storage before redirecting them to the social provider’s site
And when they come back to your app, after successful sign in / up, you can read that value form localstorage and take them back to that page.
05/13/2022, 3:49 PM
Thanks. That's pretty much what I ended up doing. I watched what the widget did and mimicked that, though I don't know exactly what the state uid is for other than confirming that the sessionStorage object matches the redirect back from the auth provider.
05/13/2022, 3:50 PM
Yea. It’s basically to make sure that you end up consuming the code only if you generated it.