raditzfarhan / simple-jwt-auth
Just a simple jwt auth for Laravel and Lumen
Package info
github.com/raditzfarhan/simple-jwt-auth
Type:laravel-package
pkg:composer/raditzfarhan/simple-jwt-auth
v1.0.0
2020-04-16 08:09 UTC
Requires
- firebase/php-jwt: ^5.2
This package is auto-updated.
Last update: 2026-02-17 22:50:05 UTC
README
Simple JWT Auth
Just a simple implementation of JWT Auth for Lumen
Configuration
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, ], ],
Credits
License
MIT. Please see the license file for more information.