sofiakb / lumen-auth
A library with simple JWT authentication.
v0.0.6
2022-06-29 00:00 UTC
Requires
- ext-json: *
- tymon/jwt-auth: dev-develop
Requires (Dev)
- laravel/lumen-framework: ^8.2
- phpunit/phpunit: ^9.5
README
lumen-auth
A library with simple JWT authentication.
Report Bug
ยท
Request Feature
Table of Contents
About The Library
The library allows to detect os system in PHP project.
Built With
This section should list any major frameworks that you built your project using. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.
Prerequisites
- php >= 7.4
- laravel/laravel >= 8 ou laravel/lumen-framework >= 8
Installation
composer require sofiakb/lumen-auth
Usage
// Fichier bootstrap/app.php $app->register(Sofiakb\Lumen\Auth\Providers\AuthServiceProvider::class); // Fichier routes/api.php \Sofiakb\Lumen\Auth\Auth::routes();
Ensuite, lancer la commande suivante
php artisan jwt:secret
Commands list
php artisan auth:activate # Activate auth account by username/email. php artisan auth:clear-resets # Flush expired password reset tokens. php artisan auth:config # Copy auth config file. php artisan auth:deactivate # Deactivate auth account by username/email. php artisan auth:table # Create migration for users & connections table. php artisan auth:user:create # Create new user and save it into database.
Roadmap
See the open issues for a list of proposed features (and known issues).
License
Distributed under the MIT License. See LICENSE
for more information.