Merge pull request #724 from davedevelopment/change-token-type-case

Change case for implict grant token_type
This commit is contained in:
Alex Bilbie 2017-08-11 08:16:08 +01:00 committed by GitHub
commit 3b58ab1df2

View File

@ -200,7 +200,7 @@ class ImplicitGrant extends AbstractAuthorizeGrant
$finalRedirectUri,
[
'access_token' => (string) $accessToken->convertToJWT($this->privateKey),
'token_type' => 'bearer',
'token_type' => 'Bearer',
'expires_in' => $accessToken->getExpiryDateTime()->getTimestamp() - (new \DateTime())->getTimestamp(),
'state' => $authorizationRequest->getState(),
],