Skip to content

Commit fab0407

Browse files
authored
fix(auth): 修复RedisTokenAuthenticationManager中的令牌删除问题 (#346)
- 修改令牌删除逻辑,添加了"token-auth:"前缀以匹配正确的Redis键格式
1 parent ac06290 commit fab0407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hsweb-authorization/hsweb-authorization-api/src/main/java/org/hswebframework/web/authorization/token/redis/RedisTokenAuthenticationManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public Mono<Authentication> getByToken(String token) {
4141
@Override
4242
public Mono<Void> removeToken(String token) {
4343
return operations
44-
.delete(token)
44+
.delete("token-auth:" + token)
4545
.then();
4646
}
4747

0 commit comments

Comments
 (0)