Skip to content

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

Merged
appleboy merged 1 commit intoappleboy:masterfrom
mikevsmith:golang-jwt-dependencies
Mar 23, 2025
Merged

Expose jwt-go MapClaims through gin-jwt.#345
appleboy merged 1 commit intoappleboy:masterfrom
mikevsmith:golang-jwt-dependencies

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