This is a contributors guide and NOT a user guide. Please visit these docs if you are using or evaluating SuperTokens.
This is just a proposal so far, it hasn't been accepted and needs further discussion.
We have to store the state and other info required for a successfull redirection in the frontend, because the sign-in process could take multiple steps.
- Use localstorage
- Use sessionstorage
Chosen option: Use localstorage
- Not sent to the backend
- Does not require changing any other recipes
In the future we can:
- Modify other recipes to tell the user if the current login is a part of an OAuth2 sign-in.
- Modify other recipes to make sure the original tab is the one redirecting back to the client.
- Create a better UX for these kinds of flows.