diff --git a/src/Passport.php b/src/Passport.php index 170096f7..f19f504e 100644 --- a/src/Passport.php +++ b/src/Passport.php @@ -378,6 +378,7 @@ public static function actingAsClient(Client $client, array $scopes = [], ?strin fn (ServerRequestInterface $request) => $request ->withAttribute('oauth_client_id', $client->getKey()) ->withAttribute('oauth_scopes', $scopes) + ->withAttribute('oauth_user_id', null) ); app()->instance(ResourceServer::class, $mock);