Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Move SpacetimeDB Token to httpOnly Cookie Instead of LocalStorage #31

Open
Lethalchip opened this issue Aug 11, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@Lethalchip
Copy link
Member

In order to make this change without breaking, we need to:

  1. Read httpOnly cookie for Token, check LocalStorage if no cookie exists
  2. Set a httpOnly cookie, remove setting of LocalStorage Token

In useStDB.tsx

Should we look to move the other localstorage items into a cookie? Realistically, the only sensitive info is the StDB token.

@Lethalchip Lethalchip added the enhancement New feature or request label Aug 11, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant