Skip to content

Commit

Permalink
jumbojett#396 - Set the id token if it is returned via the refreshTok…
Browse files Browse the repository at this point in the history
…en endpoint
  • Loading branch information
c0ntax committed Nov 16, 2023
1 parent 5d69bcf commit 0cdd0f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/OpenIDConnectClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0cdd0f0

Please sign in to comment.