You are here

public function AccessTokenInterface::refresh in Simple OAuth (OAuth2) & OpenID Connect 8

Helper function that refreshes the access token

Return value

\Drupal\simple_oauth\Entity\AccessToken valid AccessToken if this is a valid refresh token. NULL otherwise.

1 method overrides AccessTokenInterface::refresh()
AccessToken::refresh in src/Entity/AccessToken.php
If this is an refresh token, the refresh token will refresh and provide a new access token

File

src/AccessTokenInterface.php, line 50

Class

AccessTokenInterface
Provides an interface for defining Access Token entities.

Namespace

Drupal\simple_oauth

Code

public function refresh();