Skip to content

Commit

Permalink
Fix #356: Remove workaround from initPresenceCheck for repeated initi…
Browse files Browse the repository at this point in the history
…alization (#399)

- remove TODO
- change log message to describe both possible scenarios (invalid token or calling endpoint to early)
  • Loading branch information
banterCZ authored Sep 27, 2022
1 parent c513c59 commit 1dc5609
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ public PresenceCheckResult getResult(OwnerId id, SessionInfo sessionInfo) throws
if (HttpStatus.BAD_REQUEST.equals(e.getStatusCode())) {
final ClientErrorResponse clientErrorResponse = parseResponse(e.getResponse(), ClientErrorResponse.class);
if (ClientErrorResponse.ErrorEnum.INVALID_TOKEN.equals(clientErrorResponse.getError())) {
// TODO same response when validating the verification using same token repeatedly
logger.warn("Reusing iProov token, {}", id);
logger.warn("Invalid iProov token - reused token or validation called before verification, {}", id);
result.setStatus(PresenceCheckStatus.IN_PROGRESS);
} else {
result.setStatus(PresenceCheckStatus.FAILED);
Expand Down

0 comments on commit 1dc5609

Please sign in to comment.