feat: 新增JWT刷新token接口

This commit is contained in:
haoxr
2024-11-12 22:48:30 +08:00
parent b4397b13b0
commit c7621f90cb
3 changed files with 17 additions and 23 deletions

View File

@@ -63,8 +63,10 @@ security:
jwt:
# JWT 秘钥
key: SecretKey012345678901234567890123456789012345678901234567890123456789
# JWT 有效期(单位:秒)
ttl: 7200
# 访问令牌 有效期(单位:秒),默认 1 小时
access-token-expiration: 3600
# 刷新令牌有效期(单位:秒),默认 7 天
refresh-token-expiration: 604800
# 白名单列表
ignore-urls:
- /v3/api-docs/**
@@ -75,6 +77,7 @@ security:
- /swagger-ui/**
- /swagger-ui.html
- /api/v1/auth/captcha
- /api/v1/auth/refresh-token
- /ws/**
# 文件存储配置