-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: adopt jwt.MapClaims to replace custom MapClaims type across…
… codebase (#342) - Remove the custom `MapClaims` type definition - Replace `MapClaims` with `jwt.MapClaims` in `PayloadFunc`, `GetClaimsFromJWT`, `ExtractClaims`, and `ExtractClaimsFromToken` functions - Update test cases to use `jwt.MapClaims` instead of the custom `MapClaims` - Update `ConvertClaims` function to accept `jwt.MapClaims` Signed-off-by: appleboy <appleboy.tw@gmail.com>
- Loading branch information
Showing
2 changed files
with
26 additions
and
30 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