1. 优化三方登陆的代码

2. 使用 redis 存储 state
This commit is contained in:
YunaiV
2021-10-05 23:47:37 +08:00
parent a0a5d3a357
commit 0d6df43c9c
19 changed files with 294 additions and 189 deletions

View File

@@ -185,4 +185,6 @@ justauth:
agent-id: 1000004
ignore-check-redirect-uri: true
cache:
type: default
type: REDIS
prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE::
timeout: 24h # 超时时长,目前只对 Redis 缓存生效,默认 3 分钟