Jwt-auth: Please support PHP 8

Created on 9 Mar 2021  路  5Comments  路  Source: tymondesigns/jwt-auth

Subject of the issue

Problem 1
- tymon/jwt-auth is locked to version 1.0.2 and an update of this package was not requested.
- tymon/jwt-auth 1.0.2 requires php ^5.5.9|^7.0 -> your php version (8.0.2) does not satisfy that requirement.

My environment

| Q | A
| ----------------- | ---
| Bug? | yes
| New Feature? | no / yes
| Framework | Laravel
| Framework version | 8.0
| Package version | 1.0.2
| PHP version | 8

Steps to reproduce

composer update
or
composer require tymon/jwt-auth

Most helpful comment

Hello, same here. When will the update be available? Thanks

All 5 comments

there is already support for php 8, always work with the dev branch

composer require tymon/jwt-auth:dev-develop --prefer-source

The dev-branch is insufficient in my case because lcobucci/jwt is locked to below <3.4. Another library has a fix for PHP8.0 that requires lcobucci/jwt to be at least 3.4 and so jwt-auth should have lcobucci/jwt upgraded.

Hello, same here. When will the update be available? Thanks

Hello, same here. When will the update be available? Thanks

The dev-branch is insufficient in my case because lcobucci/jwt is locked to below <3.4. Another library has a fix for PHP8.0 that requires lcobucci/jwt to be at least 3.4 and so jwt-auth should have lcobucci/jwt upgraded.

Workaround - add this lines in your composer.json, this will override the requirement of <3.4. Works fine for me atm.

  "replace": {
    "lcobucci/jwt": "*"
  },
Was this page helpful?
0 / 5 - 0 ratings

Related issues

gamelife1314 picture gamelife1314  路  3Comments

functionpointdaniel picture functionpointdaniel  路  3Comments

agneshoving picture agneshoving  路  3Comments

marciomansur picture marciomansur  路  3Comments

Rasoul-Karimi picture Rasoul-Karimi  路  3Comments