SUPPORT-8755: Fix
This commit is contained in:
parent
1a1ca85a63
commit
1f6595b954
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue