supertokens / supertokens-node

Node SDK for SuperTokens core
https://supertokens.com
Other
278 stars 72 forks source link

fix: default to st-auth-mode if getTokenTransferMethod returns any in createNewSession #784

Closed porcellus closed 4 months ago

porcellus commented 5 months ago

Summary of change

createNewSession now defaults to the value of the st-auth-mode header (if available) if the configured getTokenTransferMethod returns any.

Related issues

Test Plan

Added tests that check the output of createNewSession if:

Documentation changes

N/A

Checklist for important updates