raditzfarhan/simple-jwt-auth

Just a simple jwt auth for Laravel and Lumen
219 1
Install
composer require raditzfarhan/simple-jwt-auth
Latest Version:v1.0.0
License:MIT
Last Updated:Feb 17, 2023
Links: GitHub  ·  Packagist
Maintainer: raditzfarhan

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.

Related Packages

andrewdalpino/laravel-epicuros

An Epicuros service provider for Laravel and Lumen.

30 0
ngabor84/laravel-jwt-auth

JWT authentication middleware for the Laravel and Lumen framework

3,856 0
generationtux/jwt-artisan

JWT auth package for Laravel and Lumen

53,807 139
iocaste/lumen-firebase-auth

Firebase auth + JWT for Lumen 5.6+

9 1