Laravel passport 7.5.1 - Replicating claims

9.2k Views Asked by At

We are having a new error related with laravel/passport: 7.5.1. Today, this library has been working as the last week. But this stops showing this message via Postman:

Replicating claims as headers is deprecated and will removed from v4.0. Please manually set the header if you need it replicated.

Do someone knows something about this issue?

We don't know how to continue with this...

We're using Laravel 5.7 (we know that...)

3

There are 3 best solutions below

2
On

We "solved" this temporally downgrading the library lcobucci/jwt from 3.4.0 to 3.3.3.

0
On

help me in laravel 5.8

set in composer.json

"laravel/passport": "^7.5",
"lcobucci/jwt": "3.3.2",

and update vendor

composer update
1
On

For me downgrading, lcobucci/jwt worked for me. I was currently using 3.4.* but downgraded it to a constant 3.3.3

to downgrade I run the command

composer require lcobucci/jwt 3.3.3

And that was it. But my only concern is I am not certain if this is a temporary or a permanent solution to this issue. But at least it will reboot things up if your system failed cause of that error