From a802cf90319398b26d4d71414e96e4e36529170e Mon Sep 17 00:00:00 2001 From: Marek Szymczuk Date: Sat, 3 Aug 2024 05:07:54 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20token=20authorization?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/Middleware/AuthorizeToken.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Middleware/AuthorizeToken.php b/src/Http/Middleware/AuthorizeToken.php index be570aa..5faf016 100644 --- a/src/Http/Middleware/AuthorizeToken.php +++ b/src/Http/Middleware/AuthorizeToken.php @@ -15,7 +15,7 @@ class AuthorizeToken */ public function handle(Request $request, Closure $next) { - $token = $request->bearerToken() ?? $request->input('token'); + $token = $request->bearerToken() ?? $request->get('token'); if (! $token) { return response()->json(['message' => 'You must specify a token.'], 401);