Just a simple jwt auth for Laravel and Lumen
raditzfarhan/simple-jwt-auth is a Laravel package for just a simple jwt auth for laravel and lumen.
It currently has 1 GitHub stars and 219 downloads on Packagist (latest version v1.0.0).
Install it with composer require raditzfarhan/simple-jwt-auth.
Discover more Laravel packages by raditzfarhan
or browse all Laravel packages to compare alternatives.
Last updated
Just a simple implementation of JWT Auth for Lumen
Edit the bootstrap/app.php file and add the following line to register the service provider:
...
$app->register(RaditzFarhan\SimpleJWTAuth\JWTAuthServiceProvider::class);
...
Then add jwt to your guards config in auth.php config file:
'guards' => [
...
'jwt' => [
'driver' => 'simple-jwt-auth',
'provider' => 'users',
],
],
Then add users provider if you haven't:
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\User::class,
],
],
MIT. Please see the license file for more information.