sofiakb/lumen-auth

A library with simple JWT authentication.

v0.0.6 2022-06-29 00:00 UTC

This package is auto-updated.

Last update: 2024-04-29 04:46:16 UTC


README

Contributors Forks Stargazers Issues MIT License


lumen-auth

A library with simple JWT authentication.


Report Bug · Request Feature

Table of Contents
  1. About the library
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgements

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.