16 if (\CSocServGoogleProxyOAuth::isProxyAuth())
18 $this->oauthClient = new \CSocServGoogleProxyOAuth($userId);
22 $this->oauthClient = new \CSocServGoogleOAuth($userId);
25 $this->oauthClient->getEntityOAuth()->addScope([
26 'https://www.googleapis.com/auth/calendar',
27 'https://www.googleapis.com/auth/calendar.readonly'