original_string: public function login(){
          if ($this->getGet('code')) {
              $this->client->authenticate($this->getGet('code'));
              $this->setSession('token', $this->client->getAccessToken());
  
              $redirect = $this->config->redirect_uris[0];
              header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL));
              return;
          }
  
  
          $token = $this->getSession('token');
          if ($token) {
              $this->client->setAccessToken($token);
          }
  
          if ($this->client->getAccessToken()) {
              $user = $this->oauth2_service->userinfo->get();
              $this->setSession('token', $this->client->getAccessToken());
              return $user;
          }
      }
code: public function login(){
          if ($this->getGet('code')) {
              $this->client->authenticate($this->getGet('code'));
              $this->setSession('token', $this->client->getAccessToken());
  
              $redirect = $this->config->redirect_uris[0];
              header('Location: ' . filter_var($redirect, FILTER_SANITIZE_URL));
              return;
          }
  
  
          $token = $this->getSession('token');
          if ($token) {
              $this->client->setAccessToken($token);
          }
  
          if ($this->client->getAccessToken()) {
              $user = $this->oauth2_service->userinfo->get();
              $this->setSession('token', $this->client->getAccessToken());
              return $user;
          }
      }
code_tokens: public function login ( ) { if ( $ this -> getGet ( 'code' ) ) { $ this -> client -> authenticate ( $ this -> getGet ( 'code' ) ) ; $ this -> setSession ( 'token' , $ this -> client -> getAccessToken ( ) ) ; $ redirect = $ this -> config -> redirect_uris [ 0 ] ; header ( 'Location: ' . filter_var ( $ redirect , FILTER_SANITIZE_URL ) ) ; return ; } $ token = $ this -> getSession ( 'token' ) ; if ( $ token ) { $ this -> client -> setAccessToken ( $ token ) ; } if ( $ this -> client -> getAccessToken ( ) ) { $ user = $ this -> oauth2_service -> userinfo -> get ( ) ; $ this -> setSession ( 'token' , $ this -> client -> getAccessToken ( ) ) ; return $ user ; } }
docstring: Logs in the user
  @return \stdClass
  @servable true
docstring_tokens: Logs in the user