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,
Run the below command to fix this issue.
composer require lcobucci/jwt:3.3.3
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With