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

Fix race condition that might result in multiple JWS validator objects #351

Open
BobGerman opened this issue Oct 7, 2024 · 0 comments
Open
Assignees

Comments

@BobGerman
Copy link
Contributor

BobGerman commented Oct 7, 2024

In lab E6 there is a race condition in which, if additional HTTP request(s) arrive while the code is awaiting the JWT validator, it will create additional validators. This would not present a security problem but would be inefficient.
Need to cache the promise not the validator object.

@BobGerman BobGerman self-assigned this Oct 7, 2024
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