public function TestSalesforceAuthProvider::refreshAccessToken in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 src/Tests/TestSalesforceAuthProvider.php \Drupal\salesforce\Tests\TestSalesforceAuthProvider::refreshAccessToken()
- 5.0.x src/Tests/TestSalesforceAuthProvider.php \Drupal\salesforce\Tests\TestSalesforceAuthProvider::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/
Tests/ TestSalesforceAuthProvider.php, line 31
Class
- TestSalesforceAuthProvider
- Test auth provider.
Namespace
Drupal\salesforce\TestsCode
public function refreshAccessToken(TokenInterface $token) {
return TRUE;
}