lapix/simple-jwt-laravel

There is no license information available for the latest version (v1.1.0) of this package.

Package to handling the JWT Authentication with Laravel and SimplJWT

v1.1.0 2024-03-23 16:30 UTC

This package is auto-updated.

Last update: 2024-04-23 16:36:48 UTC


README

Installation

You should implements the following interface and bind it.

  1. First, publish the package asserts: Configuration and Service Provider.
php artisan vendor:publish --tag=simple-jwt
  1. You should implement the following interfaces:
  • Lapix\SimpleJwt\SubjectRepository
  • Lapix\SimpleJwt\ClaimsHandler
  1. Add the service provider to the file /config/app.php.

  2. Generate a new key pair using the command php artisan simple-jwt:keys and add the following environment variables:

  • JWT_PRIVATE_KEYS: Private key.
  • JWT_PUBLIC_KEYS: Public key.
  • JWT_IDS: An arbitrary value, it used to identify the key.
  1. Change the configuration in the file config/simple-jwt.php as you want.