I don't understand JWT refresh token's behaviour (LARAVEL)
Clash Royale CLAN TAG #URR8PPP I don't understand JWT refresh token's behaviour (LARAVEL) I have just tried JWT auth with LARAVEL and this https://github.com/tymondesigns/jwt-auth But there's something i can't understand. In their config they put : 'ttl' => env('JWT_TTL', 60), // in munutes 'refresh_ttl' => env('JWT_REFRESH_TTL', 20160), // in minutes What i understant : the token's live is 1hour and can be refreshed within 2 weeks But after 3hours, if i try to query something, it says "token expired". Does this system mean, a user must get his token updated / refreshed within every hour but with a limit of 2 weeks ? I don't get it. How can a user persist login with this kind of system ? How is the refresh Token useful when after the first hour, though it hasn't been 2 weeks yet, i can't get a fresh token ? thanks UPDATE: CODE config/jwt.php 'ttl' => 2, // 2 minutes 'refresh_ttl' => 5,...