feat: 支持redis-token和单设备登录
This commit is contained in:
@@ -86,6 +86,13 @@ security:
|
||||
# 刷新令牌有效期(单位:秒),默认 7 天
|
||||
refresh-token-time-to-live: 604800
|
||||
# 无需认证的请求路径
|
||||
redis-token:
|
||||
# 是否允许多点登录,true:允许 false:不允许
|
||||
multi-login: false
|
||||
# 访问令牌有效期(单位:秒),默认 1 小时
|
||||
access-token-time-to-live: 3600
|
||||
# 刷新令牌有效期(单位:秒),默认 7 天
|
||||
refresh-token-time-to-live: 604800
|
||||
ignore-urls:
|
||||
- /api/v1/auth/login/** # 登录接口(账号密码登录、手机验证码登录和微信登录)
|
||||
- /api/v1/auth/captcha # 验证码获取接口
|
||||
|
||||
Reference in New Issue
Block a user