mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-29 00:10:43 +05:30
convert JWT to string for http_build_query
This commit is contained in:
parent
c3ffed2daf
commit
9b665f494f
@ -197,7 +197,7 @@ class ImplicitGrant extends AbstractAuthorizeGrant
|
|||||||
$scopes
|
$scopes
|
||||||
);
|
);
|
||||||
|
|
||||||
$redirectPayload['access_token'] = $accessToken->convertToJWT($this->pathToPrivateKey);
|
$redirectPayload['access_token'] = (string) $accessToken->convertToJWT($this->pathToPrivateKey);
|
||||||
$redirectPayload['token_type'] = 'bearer';
|
$redirectPayload['token_type'] = 'bearer';
|
||||||
$redirectPayload['expires_in'] = time() - $accessToken->getExpiryDateTime()->getTimestamp();
|
$redirectPayload['expires_in'] = time() - $accessToken->getExpiryDateTime()->getTimestamp();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user