diff --git a/src/main/java/top/dcenter/ums/security/core/oauth/justauth/cache/AuthStateRedisCache.java b/src/main/java/top/dcenter/ums/security/core/oauth/justauth/cache/AuthStateRedisCache.java index 540f897ccf89ca0da4dba98814d0505ff6b46133..ed1744ea0c09b54bd3143beba6322c6b00d6b89c 100644 --- a/src/main/java/top/dcenter/ums/security/core/oauth/justauth/cache/AuthStateRedisCache.java +++ b/src/main/java/top/dcenter/ums/security/core/oauth/justauth/cache/AuthStateRedisCache.java @@ -61,7 +61,7 @@ public class AuthStateRedisCache implements Auth2StateCache { @Override public boolean containsKey(String key) { - return StringUtils.hasText(stringRedisTemplate.opsForValue().get(key)); + return StringUtils.hasText(stringRedisTemplate.opsForValue().get(justAuthProperties.getCacheKeyPrefix() + key)); } @Override