-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: jwt.Verify fetches the JSON web key
In order to reduce friction when manually verifying a session JWT, the jwt.Verify function will fetch the JSON web key if it's not passed in the params. Users can specify the jwks.Client that will be used to invoke the API GET /v1/jwks method. Exported the method which fetches the JSON web key, since it can be re-used by the middleware. It can also be used for consumers who wish to fetch the JSON web key once and cache it. Caching is recommended.
- Loading branch information
Showing
4 changed files
with
108 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters