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