src/Connection/Connector.php
protected function saveToken(AccessToken $token)
    {
        if ($this->config['api_token'] && $this->config['api_token_type'] === 'access') {
            return;
        }
        foreach ($token->jsonSerialize() as $name => $value) {
            if (isset($this->storageKeys[$name])) {
                $this->session->set($this->storageKeys[$name], $value);
            }
        }
        $this->session->save();
    }
protected function saveToken(AccessToken $token)
    {
        if ($this->config['api_token'] && $this->config['api_token_type'] === 'access') {
            return;
        }
        foreach ($token->jsonSerialize() as $name => $value) {
            if (isset($this->storageKeys[$name])) {
                $this->session->set($this->storageKeys[$name], $value);
            }
        }
        $this->session->save();
    }
protected function saveToken ( AccessToken $ token ) { if ( $ this -> config [ 'api_token' ] && $ this -> config [ 'api_token_type' ] === 'access' ) { return ; } foreach ( $ token -> jsonSerialize ( ) as $ name => $ value ) { if ( isset ( $ this -> storageKeys [ $ name ] ) ) { $ this -> session -> set ( $ this -> storageKeys [ $ name ] , $ value ) ; } } $ this -> session -> save ( ) ; }
Save an access token to the session.

@param AccessToken $token
Save an access token to the session .