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 verification relying on a signing key #65

Merged
merged 1 commit into from
Jan 26, 2024
Merged

Conversation

nickthegroot
Copy link
Contributor

When attempting to use the library to validate an incoming JWT against an authentication server, I was seeing errors importing the key.

Uncaught (in promise) DOMException: Cannot create a key using the specified key usages.

This PR fixes the issue to only import keys based on their needed usage.

@tsndr tsndr merged commit 247da9b into tsndr:main Jan 26, 2024
@tsndr
Copy link
Owner

tsndr commented Jan 26, 2024

Thank you for your contribution, always appreciated :)

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

Successfully merging this pull request may close these issues.

None yet

2 participants