important
This is a contributors guide and NOT a user guide. Please visit these docs if you are using or evaluating SuperTokens.
Use localstorage to store redirection state
Status
This is just a proposal so far, it hasn't been accepted and needs further discussion.
- Status:
- proposed
- Deciders:
- rishabhpoddar, porcellus
- Proposed by:
- porcellus
- Created:
- 2023-05-11
#
Context and Problem StatementWe 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.
#
Considered Options- Use localstorage
- Use sessionstorage
- Use cookies
#
Decision OutcomeChosen 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.