SUPPORT-8755: Fix

This commit is contained in:
Eduard Tihomirov 2024-12-24 20:28:52 +03:00
parent 1a1ca85a63
commit 1f6595b954

View file

@ -65,8 +65,8 @@ public class JwtAuthenticationFilter extends AbstractAuthenticationProcessingFil
if (ids.length != 2) {
throw new CredentialsExpiredException("Invalid token. User has no ervuId");
}
boolean hasEsiaAccessToken = TokensStore.validateAccessToken(token.getUserAccountId());
if (!hasEsiaAccessToken) {
boolean esiaAccessTokenIsValid = TokensStore.validateAccessToken(token.getUserAccountId());
if (!esiaAccessTokenIsValid) {
throw new CredentialsExpiredException("ESIA access token is null");
}
}