diff --git a/src/OpenIDConnectClient.php b/src/OpenIDConnectClient.php index 6aa80b17..54b3e680 100644 --- a/src/OpenIDConnectClient.php +++ b/src/OpenIDConnectClient.php @@ -1030,6 +1030,10 @@ public function refreshToken(string $refresh_token) { $this->accessToken = $json->access_token; } + if (isset($json->id_token)) { + $this->idToken = $json->id_token; + } + if (isset($json->refresh_token)) { $this->refreshToken = $json->refresh_token; }