From 76e8be0e8fae461d82ecb21a0d9e0dba67f0ac58 Mon Sep 17 00:00:00 2001 From: Evgeny Kuchuk Date: Wed, 6 May 2020 11:42:23 +0300 Subject: [PATCH] Update JWTAuth.php --- src/JWTAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/JWTAuth.php b/src/JWTAuth.php index c1d89f9..b32be74 100644 --- a/src/JWTAuth.php +++ b/src/JWTAuth.php @@ -296,7 +296,7 @@ class JWTAuth } elseif ($this->token) { return $this; } else { - throw new JWTException('A token is required', 400); + throw new JWTException('A token is required', 401); } }