diff --git a/src/Services/Auth/AccessTokenGuard.php b/src/Services/Auth/AccessTokenGuard.php index e8cce4f4..cb0ae3e0 100644 --- a/src/Services/Auth/AccessTokenGuard.php +++ b/src/Services/Auth/AccessTokenGuard.php @@ -80,6 +80,7 @@ public function user() $token = null; $signature = null; + $access_key = is_array($access_key) ? $access_key[0] : $access_key; if (\strpos($access_key, ':') !== false) { [$access_key, $signature] = \explode(':', $access_key, 2); }