public function OpenIDConnectSessionInterface::retrieveStateToken in OpenID Connect / OAuth client 2.x
Get the state token from the session.
Parameters
bool $clear: The value is cleared from the session, unless this is set to FALSE.
Return value
string|null The state token.
1 method overrides OpenIDConnectSessionInterface::retrieveStateToken()
- OpenIDConnectSession::retrieveStateToken in src/
OpenIDConnectSession.php - Get the state token from the session.
File
- src/
OpenIDConnectSessionInterface.php, line 100
Class
- OpenIDConnectSessionInterface
- Creates and validates state tokens.
Namespace
Drupal\openid_connectCode
public function retrieveStateToken(bool $clear = TRUE) : ?string;