You are here

public function SalesforceAuthTokenStorage::retrieveAccessToken in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 src/Storage/SalesforceAuthTokenStorage.php \Drupal\salesforce\Storage\SalesforceAuthTokenStorage::retrieveAccessToken()
  2. 8.3 src/Storage/SalesforceAuthTokenStorage.php \Drupal\salesforce\Storage\SalesforceAuthTokenStorage::retrieveAccessToken()
1 call to SalesforceAuthTokenStorage::retrieveAccessToken()
SalesforceAuthTokenStorage::hasAccessToken in src/Storage/SalesforceAuthTokenStorage.php

File

src/Storage/SalesforceAuthTokenStorage.php, line 70

Class

SalesforceAuthTokenStorage
Salesforce auth token storage.

Namespace

Drupal\salesforce\Storage

Code

public function retrieveAccessToken($service) {
  if ($token = $this->state
    ->get(static::getTokenStorageId($service))) {
    return $token;
  }
  throw new TokenNotFoundException();
}