Skip to content

Commit 1ce5bad

Browse files
RachanaRachana
authored andcommitted
BUG#AC-9337:Revoking or invalidating previous access tokens upon generating new access token rest
1 parent 6d91453 commit 1ce5bad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

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

0 commit comments

Comments
 (0)