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

Fix compatibility with JWT 2.10+ #462

Merged
merged 1 commit into from
Dec 26, 2024
Merged

Conversation

janko
Copy link
Contributor

@janko janko commented Dec 26, 2024

In JWT 2.10.0, the JWT::VERSION::{MAJOR,MINOR,TINY,PRE} constants were silently made private (see jwt/ruby-jwt@e180765), so use JWT.gem_version instead.

This version made the `JWT::VERSION::{MAJOR,MINOR,TINY,PRE}` constants private,
so we use `JWT.gem_version` instead.
@janko janko mentioned this pull request Dec 26, 2024
2 tasks
janko added a commit to janko/rodauth-model that referenced this pull request Dec 26, 2024
@jeremyevans
Copy link
Owner

Thanks for the patch! The jwt gem reversed the change in 2.10.1, so this isn't needed. However, I checked and it seems all jwt versions support JWT.gem_version, so there shouldn't be harm in switching to that.

@jeremyevans jeremyevans merged commit 3921088 into jeremyevans:master Dec 26, 2024
16 checks passed
@janko janko deleted the fix-jwt branch December 27, 2024 06:14
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