diff --git a/src/TokenGenerator.php b/src/TokenGenerator.php index b2cdc75..e38c896 100644 --- a/src/TokenGenerator.php +++ b/src/TokenGenerator.php @@ -208,6 +208,9 @@ public function addIdTokenToResponse($response, $clientId, $subject, $nonce, $pr $body['id_token'] = $idToken; // $body['refresh_token'] = str_repeat('a', 209); // FIXME: Remove this, DO NOT MERGE. Podpro doesn't like refresh tokens longer than 209 characters; + if ($dpop) { + $body['token_type'] = 'DPoP'; + } return new JsonResponse($body); } catch (\Exception $e) { // leave the response as it was;