web-token/jwt-easy is deprecated, and web-token/jwt-library should be used instead (or a subset of it's exported packages.
The library requires PHP 8.1, so it would likely also involve dropping Drupal 9 support, or releasing this under a new major.
Unsure about what the test controller asserted, but I tried to recreate the logic using the exports available in jwt-library.
Issue fork jwt_block-3457353
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
kevineinarsson commentedComment #3
kevineinarsson commentedComment #6
edurenye commentedLooks good to me. Thank you @kevineinarsson !
I created a release for Drupal 9 (https://www.drupal.org/project/jwt_block/releases/1.0.0-alpha0) in case there are people still using it in Drupal 9.
Now I'll create a new release alpha1 for Drupal 10 and 11.