codecasts / laravel-jwt

Dead simple, plug and play JWT API Authentication for Laravel (5.4+)
MIT License
234 stars 27 forks source link

make setupSecret() method public #27

Closed jonagoldman closed 6 years ago

jonagoldman commented 6 years ago

This will allow to change the secret key after initialization: see https://github.com/codecasts/laravel-jwt/issues/26

Now you can do:

Config::set('jwt.secret', $new_secret);
Auth::guard()->manager()->setupSecret();
jonagoldman commented 6 years ago

ping @hernandev

hernandev commented 6 years ago

Sorry for the delay

hernandev commented 6 years ago

v0.10.0 released with this PR included.