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

refactor: adopt jwt.MapClaims to replace custom MapClaims type #342

Merged
merged 1 commit into from
Feb 24, 2025

Conversation

appleboy
Copy link
Owner

  • 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

fix #341

… codebase

- 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 <[email protected]>
@appleboy appleboy merged commit 74e77e5 into master Feb 24, 2025
6 checks passed
@appleboy appleboy deleted the patch11 branch February 24, 2025 12:45
@fabszabo
Copy link

fabszabo commented Mar 14, 2025

This is not a refactor. This is a breaking change

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.

Replace IdentityHandler's parameter jwt.MapClaims with MapClaims
2 participants