You are here

public function Broken::refreshAccessToken in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 5.0.x src/Plugin/SalesforceAuthProvider/Broken.php \Drupal\salesforce\Plugin\SalesforceAuthProvider\Broken::refreshAccessToken()

Perform a refresh of the given token.

NB: This method should also refresh any associated identity.

Parameters

\OAuth\Common\Token\TokenInterface $token: The token.

Return value

\OAuth\Common\Token\TokenInterface The refreshed token.

Throws

\OAuth\OAuth2\Service\Exception\MissingRefreshTokenException Comment.

Overrides SalesforceAuthProviderPluginBase::refreshAccessToken

File

src/Plugin/SalesforceAuthProvider/Broken.php, line 32

Class

Broken
Fallback for broken / missing plugin.

Namespace

Drupal\salesforce\Plugin\SalesforceAuthProvider

Code

public function refreshAccessToken(TokenInterface $token) {
  throw new MissingRefreshTokenException();
}