Skip to content

Commit

Permalink
Include id_token in jsonSerialize
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua License committed Jun 20, 2021
1 parent 3f8d322 commit 833433d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Token/AccessToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,18 @@ public function getIdTokenClaims()
{
return $this->idTokenClaims;
}

/**
* @inheritdoc
*/
public function jsonSerialize()
{
$parameters = parent::jsonSerialize();

if ($this->idToken) {
$parameters['id_token'] = $this->idToken;
}

return $parameters;
}
}

0 comments on commit 833433d

Please sign in to comment.