Skip to content

Commit 76d2b7a

Browse files
RachanaRachana
authored andcommitted
BUG#AC-9337:Revoking or invalidating previous access tokens upon generating new access token for Restapi
1 parent 296bfe4 commit 76d2b7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/JwtUserToken/Model/RevokedValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function validate(UserToken $token): void
4040
(int) $token->getUserContext()->getUserType(),
4141
(int) $token->getUserContext()->getUserId()
4242
);
43-
if ($revoked && $token->getData()->getIssued()->getTimestamp()-1 <= $revoked->getBeforeTimestamp()) {
43+
if ($revoked && $token->getData()->getIssued()->getTimestamp() <= $revoked->getBeforeTimestamp()) {
4444
throw new AuthorizationException(__('User token has been revoked'));
4545
}
4646
}

0 commit comments

Comments
 (0)