tymondesigns / jwt-auth

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

JWT secret not being set. #963

Open aijcoa opened 7 years ago

aijcoa commented 7 years ago

I'm using php artisan jwt:generate to generate a token, which returns the following:

jwt-auth secret [...] set successfully.

But where is it set? The JWT_SECRET variable in my .ENV file doesn't change, and if I perform a project wide search for the key it's not found.

Does this command work?

Laravel 5.3, jwt-auth 0.5.9.

REBELinBLUE commented 7 years ago

Same

M-Hoogie commented 7 years ago

For me the problem was that my .env file is not in the same folder as the Lumen basepath. (I'm integrating lumen in an existing ~not~ greatly structured project)

karrarkazuya commented 7 years ago

Same here

Perfect0B0D commented 1 month ago

I have seen same problem