yield [$request, 'Invalid credentials.', BadCredentialsException::
class];
$request =
new Request();
$request->query->
set('access_token', 'INVALID_ACCESS_TOKEN'
);
yield [$request, 'Invalid access token or invalid user.', BadCredentialsException::
class];
} private function setUpAuthenticator(string
$parameter = 'access_token'
): void
{ $this->authenticator =
new AccessTokenAuthenticator( $this->accessTokenHandler,
new QueryAccessTokenExtractor($parameter),
$this->userProvider
);
}}