Using integers for registered date claims is deprecated, please use DateTimeImmutable objects instead. This error occurs during generate personal access token using laravel passport @ laravel8.12enter code here.
Using integers for registered date claims is deprecated, please use DateTimeImmutable objects instead. This error occurs during generate personal access token using laravel passport @ laravel8.12enter code here.
If you are using Tymon/jwt-auth,
this could help you
In config\jwt.php file
Change
'jwt' => Tymon\JWTAuth\Providers\JWT\Lcobucci::class,
to
'jwt' => Tymon\JWTAuth\Providers\JWT\Namshi::class,
I think there is an issue with icobucci/jwt:3.4... just run composer require lcobucci/jwt:3.3.3 it should work..
This also happens with tymon/jwt-auth ^v1.0
If that happen, you can also switch to the Namshi provider, specified in the jwt.providers.jwt configuration of tymon/jwt-auth.