Skip to content

Commit

Permalink
🩹 Fix token authorization (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonzai authored Aug 3, 2024
1 parent 6bab833 commit 8915b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Middleware/AuthorizeToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8915b11

Please sign in to comment.