supertokens-website icon indicating copy to clipboard operation
supertokens-website copied to clipboard

Do not store tokens in frontend cookies by default in header based auth

Open rishabhpoddar opened this issue 2 years ago • 0 comments

The issue with using cookie store on the frontend in header based auth is that those cookies are not secure. So during page loads, those can be sent over the network even with http.

Therefore, i think we should use localstorage by default. And then only use cookie storage if user has set frontendCookieDomain

rishabhpoddar avatar Jun 07 '23 16:06 rishabhpoddar