auth = new \Http\Message\Authentication\Bearer($token); } /** * Alter the request to add the authentication credentials. */ public function authenticate(RequestInterface $request): RequestInterface { return $this->auth->authenticate($request); } }