From 86bb12c1eb8b3776c577c154a881482594591ca7 Mon Sep 17 00:00:00 2001 From: Evgeny Kuchuk Date: Wed, 6 May 2020 11:41:57 +0300 Subject: [PATCH] Update PayloadValidator.php --- src/Validators/PayloadValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Validators/PayloadValidator.php b/src/Validators/PayloadValidator.php index cc11d23..c7eebb6 100644 --- a/src/Validators/PayloadValidator.php +++ b/src/Validators/PayloadValidator.php @@ -95,7 +95,7 @@ class PayloadValidator extends AbstractValidator protected function validateRefresh(array $payload) { if (isset($payload['iat']) && Utils::timestamp($payload['iat'])->addMinutes($this->refreshTTL)->isPast()) { - throw new TokenExpiredException('Token has expired and can no longer be refreshed', 400); + throw new TokenExpiredException('Token has expired and can no longer be refreshed', 401); } return true;