Laravel jwt token

Asked

Viewed 223 times

-1

I am using tymondesigns/jwt-auth to generate token Is working The problem is that I want to change the validity time of the token to 1 minute to do tests

I changed the jwt.php file: 'ttl' => env('JWT_TTL', 1), and I also tried: 'ttl' => 1,

It still didn’t work

1 answer

0

I tried to clear the cache like this:

php Artisan cache:clear

It made no difference I found that clear the configuration cache:

php Artisan config:cache

Now it works

Browser other questions tagged

You are not signed in. Login or sign up in order to post.