Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Is it possible to set and decrypt with different LS instances (i.e. Cypress and FE Framework) #66

Open
GeraldRyan opened this issue Jul 27, 2022 · 0 comments

Comments

@GeraldRyan
Copy link

I assume each app instance has its own secureLS instance with its own salt, such that one SecureLS can't decrypt a token set by another SecureLS. I get that that is a big point of security, but my use case is logging in via an API call to the backend using LS to set the token into LS using Cypress for E2E testing. If Cypress runtime uses one secure-ls import and Vue uses another, is it even possible for these to talk, with the right configuration or is that an impossibility? We're getting a could not parse JSON error in Cypress's console from secure-ls.js:256 and that would make sense if this is not possible to decrypt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant