Skip to content

Token storage security #99

Discussion options

You must be logged in to vote

Okay, I'll agree that there might be an XSS-related issue in having them in browser storage, but only if the application is already XSS vulnerable. Having them stored there does not create the XSS-vulnerability.

I'm sure @soofstad can elaborate and give clearer arguments for why this choice was made, but as far as I can see, LocalStorage is the recommended storage solution for OAuth2 PKCE.

Two sources I found after a quick google search:

For the last one, the comment above disagrees with the one I linked, so I guess there is some debate on the subject.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@netr0m
Comment options

@netr0m
Comment options

@robertledang
Comment options

Answer selected by robertledang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants