Closed nickthegroot closed 7 months ago
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.
Thank you for your contribution, always appreciated :)
When attempting to use the library to validate an incoming JWT against an authentication server, I was seeing errors importing the key.
This PR fixes the issue to only import keys based on their needed usage.