I used dev-develop,
How to set expire?
Let's say I have one custom claims, and want to make it expire in 2 hours.
There is an option to set the time to live of the token in minutes. It defaults to 1 hour
config/jwt.php
'JWT_TTL' => env('JWT_TTL', 60) ,
Just add
JWT_TTL=120 to your .env file
how if some token need to expire in 2 week, and some token need to expire in 2 hour?
Please refer to issue #1491
Most helpful comment
There is an option to set the time to live of the token in minutes. It defaults to 1 hour
config/jwt.php
Just add
JWT_TTL=120to your.envfile