tymondesigns / jwt-auth

🔐 JSON Web Token Authentication for Laravel & Lumen
https://jwt-auth.com
MIT License
11.29k stars 1.54k forks source link

Cast JWT_TTL value to integer in config.php if sourced from .env #2257

Open D-Redouane opened 5 months ago

D-Redouane commented 5 months ago

The env file is passing values as string and if manually the developer set the JWT_TTL value in the env file an error of :

Carbon\\Carbon::rawAddUnit(): Argument #3 ($value) must be of type int|float, string given,

will appear

Fixes #2256