Skip to content

Fix compatibility with JWT 2.10+#462

Merged
jeremyevans merged 1 commit into
jeremyevans:masterfrom
janko:fix-jwt
Dec 26, 2024
Merged

Fix compatibility with JWT 2.10+#462
jeremyevans merged 1 commit into
jeremyevans:masterfrom
janko:fix-jwt

Conversation

@janko

@janko janko commented Dec 26, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
@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