/** * @return $this */ private function makeClientAuth() { if (!$this->isAuthMode()) { return $this; } $this->client->setRedirectUri('postmessage'); $this->client->authenticate($this->code); $this->client->setAccessType('offline'); return $this; }