API接口-优化/创建保存jwt

This commit is contained in:
2026-03-30 15:19:22 +08:00
parent 2d561f81b5
commit c2ce8085c2
5 changed files with 69 additions and 3 deletions

View File

@@ -87,8 +87,8 @@ return [
'agents' => [
// 'agent_001' => 'your_secret_key',
],
// JWT 签名密钥(留空则使用 token.key
'jwt_secret' => '',
// JWT 签名密钥(留空则使用 token.key;建议 AGENT_AUTH_JWT_SECRET 注入
'jwt_secret' => strval(env('AGENT_AUTH_JWT_SECRET', '')),
// 是否启用 H5 临时登录接口 /api/v1/temLogin
'temp_login_enable' => true,
// Token 有效期(秒),默认 24 小时