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

QUESTION: XSS Attack Protection and other attacks #1450

Open
Alexlamafia2 opened this issue Jan 8, 2025 · 2 comments
Open

QUESTION: XSS Attack Protection and other attacks #1450

Alexlamafia2 opened this issue Jan 8, 2025 · 2 comments

Comments

@Alexlamafia2
Copy link

It seems as though cognito tokens are store either in the local storage or session storage. Although these places work they seem vulnerabble to XSS or CRSF attacks, is there a way to protect against these types of attacks using this package. Thanks!

@zach-betz-hln
Copy link

When creating a new UserManager, you can set the userStore to InMemoryWebStorage if you like. For example:

const userManager = new UserManager({
  userStore: new WebStorageStateStore({ store: new InMemoryWebStorage() })
  // other props...
});

Also see the docs.

@Alexlamafia2
Copy link
Author

Thanks for your help! @zach-betz-hln

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

2 participants