important
This is a contributors guide and NOT a user guide. Please visit these docs if you are using or evaluating SuperTokens.
How to attach the auth mode preference to requests
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 Statement#
We have to add the auth method choice (header or cookies) to requests.
Considered Options#
- Reuse the 
ridheader - New header
 - Cookie
 
Decision Outcome#
New header: st-auth-method values: header | cookie