important
This is a contributors guide and NOT a user guide. Please visit these docs if you are using or evaluating SuperTokens.
Store tokens (access and refresh) in cookies in header based auth mode
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:
- 2022-10-25
#
Context and Problem StatementIn header based auth mode we have to decide where to store our tokens on the frontend.
#
Considered Options- Cookies
- Localstorage (or other similar)
#
Decision OutcomeUse cookies, the disadvantage of no sharing between subdomains is huge.