diff --git a/core/src/main/java/moa/client/wincube/auth/WincubeAuthClient.java b/core/src/main/java/moa/client/wincube/auth/WincubeAuthClient.java index 2969c28..f913018 100644 --- a/core/src/main/java/moa/client/wincube/auth/WincubeAuthClient.java +++ b/core/src/main/java/moa/client/wincube/auth/WincubeAuthClient.java @@ -2,8 +2,6 @@ import static moa.client.exception.ExternalApiExceptionType.EXTERNAL_API_EXCEPTION; import static moa.client.wincube.auth.Aes256Iv.generateIv; -import static moa.global.config.cache.CacheConfig.WINCUBE_ACCESS_TOKEN_CACHE_MANAGER_NAME; -import static moa.global.config.cache.CacheConfig.WINCUBE_ACCESS_TOKEN_CACHE_NAME; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; @@ -18,7 +16,6 @@ import moa.client.wincube.dto.WincubeIssueAuthTokenResponse; import moa.client.wincube.dto.WincubeTokenSignature; import moa.global.jwt.JwtService; -import org.springframework.cache.annotation.Cacheable; import org.springframework.http.HttpStatus; import org.springframework.stereotype.Component; @@ -37,10 +34,6 @@ public class WincubeAuthClient { private final Rsa rsa; private final JwtService jwtService; - @Cacheable( - cacheNames = WINCUBE_ACCESS_TOKEN_CACHE_NAME, - cacheManager = WINCUBE_ACCESS_TOKEN_CACHE_MANAGER_NAME - ) public String getAuthToken() { String aesIv = generateIv(AES_IV_BYTE); String codeId = getAuthCode(aesIv);