You are here

public function SalesforceAuthTokenStorage::updateToken in Salesforce Suite 8.3

Backwards-compatibility for legacy singleton auth.

Deprecated

BC legacy auth scheme only, do not use, will be removed.

File

src/Storage/SalesforceAuthTokenStorage.php, line 55

Class

SalesforceAuthTokenStorage
Salesforce auth token storage.

Namespace

Drupal\salesforce\Storage

Code

public function updateToken() {
  $this
    ->storeAccessToken($this
    ->service(), new SalesforceToken($this->state
    ->get('salesforce.access_token'), $this->state
    ->get('salesforce.refresh_token')));
  return $this;
}