Skip to content

Commit 4cbacf9

Browse files
RachanaRachana
authored andcommitted
BUG#AC-9337:Revoking or invalidating previous access tokens upon generating new access token
1 parent 79764d6 commit 4cbacf9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

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

0 commit comments

Comments
 (0)