lapix/simple-jwt-laravel
最新稳定版本:v3.0.0
Composer 安装命令:
composer require lapix/simple-jwt-laravel
包简介
Package to handling the JWT Authentication with Laravel and SimplJWT
README 文档
README
Installation
You should implements the following interface and bind it.
- First, publish the package asserts: Configuration and Service Provider.
php artisan vendor:publish --tag=simple-jwt
- You should implement the following interfaces:
Lapix\SimpleJwt\SubjectRepositoryLapix\SimpleJwt\ClaimsHandler
-
Add the service provider to the file
/config/app.php. -
Generate a new key pair using the command
php artisan simple-jwt:keysand 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.
- Change the configuration in the file
config/simple-jwt.phpas you want.
统计信息
- 总下载量: 85
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-03-14