Merge pull request #462 from juliangut/jwt_to_string

V5 - Convert JWT to string for http_build_query
This commit is contained in:
Alex Bilbie 2016-03-14 12:35:39 +01:00
commit 5e8d2fe0f5

View File

@ -197,7 +197,7 @@ class ImplicitGrant extends AbstractAuthorizeGrant
$scopes
);
$redirectPayload['access_token'] = $accessToken->convertToJWT($this->pathToPrivateKey);
$redirectPayload['access_token'] = (string) $accessToken->convertToJWT($this->pathToPrivateKey);
$redirectPayload['token_type'] = 'bearer';
$redirectPayload['expires_in'] = time() - $accessToken->getExpiryDateTime()->getTimestamp();