You are here

public function OpenIDConnectSessionInterface::retrieveAccessToken in OpenID Connect / OAuth client 2.x

Get the access token from the session.

Parameters

bool $clear: The value is cleared from the session, if this is set to TRUE.

Return value

string|null The access token.

1 method overrides OpenIDConnectSessionInterface::retrieveAccessToken()
OpenIDConnectSession::retrieveAccessToken in src/OpenIDConnectSession.php
Get the access token from the session.

File

src/OpenIDConnectSessionInterface.php, line 81

Class

OpenIDConnectSessionInterface
Creates and validates state tokens.

Namespace

Drupal\openid_connect

Code

public function retrieveAccessToken(bool $clear = FALSE) : ?string;