mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-09-03 06:35:25 +08:00
fix(auth): 修复RedisTokenAuthenticationManager中的令牌删除问题 (#346)
- 修改令牌删除逻辑,添加了"token-auth:"前缀以匹配正确的Redis键格式
This commit is contained in:
@@ -41,7 +41,7 @@ public class RedisTokenAuthenticationManager implements TokenAuthenticationManag
|
||||
@Override
|
||||
public Mono<Void> removeToken(String token) {
|
||||
return operations
|
||||
.delete(token)
|
||||
.delete("token-auth:" + token)
|
||||
.then();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user