public function OpenIDConnectSession::saveStateToken in OpenID Connect / OAuth client 2.x
Save the state token in the session.
Parameters
string $token: The state token.
Overrides OpenIDConnectSessionInterface::saveStateToken
File
- src/
OpenIDConnectSession.php, line 187
Class
- OpenIDConnectSession
- Session service of the OpenID Connect module.
Namespace
Drupal\openid_connectCode
public function saveStateToken(string $token) {
$this->session
->set('openid_connect_state', $token);
}