Skip to content

Expose jwt-go MapClaims through gin-jwt. #345

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

Merged
merged 1 commit into from
Mar 23, 2025

Conversation

mikevsmith
Copy link
Contributor

This pull request updates the MapClaims struct to be an alias of the golang-jwt library's MapClaims instead of requiring all the downstream functions to use the golang-jwt library's struct.

This helps a lot with breaking changes (such as the one introduced in the last tag) because it means that the function inputs can be consistent, and it prevents anyone who uses MapClaims in upstream code from needing to import golang-jwt in any of their packages. This is important because requiring users to import golang-jwt directly can cause version mismatches when trying to manage dependencies.

@mikevsmith
Copy link
Contributor Author

@appleboy Can you review this change?

@appleboy appleboy merged commit 4dda4d6 into appleboy:master Mar 23, 2025
3 of 5 checks passed
@mikevsmith mikevsmith deleted the golang-jwt-dependencies branch March 26, 2025 20:12
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.

2 participants