satpro-hub/oauth-client

OAuthClient 用于API服务,验证JWT令牌

0.0.7 2024-05-26 06:01 UTC

This package is auto-updated.

Last update: 2024-09-26 06:57:14 UTC


README

Total Downloads Latest Stable Version License

oauth-client

用于验证JWT令牌的包,允许从Oauth服务器加载公钥

安装

composer require satpro-hub/oauth-client

配置从Oauth服务器加载公钥的设置

  1. 在.env文件中添加获取令牌的链接
PUBLIC_TOKEN_URL=https://mysite.site/api/public_key
  1. 添加在cron中执行命令
php artisan oauth:key