mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-03 18:51:53 +05:30
Set the uid on the refresh token
This commit is contained in:
parent
eef5cf39d4
commit
0efa7cd7ea
@ -47,8 +47,9 @@ class BearerTokenResponse extends AbstractResponseType
|
|||||||
->setIssuedAt(time())
|
->setIssuedAt(time())
|
||||||
->setNotBefore(time())
|
->setNotBefore(time())
|
||||||
->setExpiration($this->refreshToken->getExpiryDateTime()->getTimestamp())
|
->setExpiration($this->refreshToken->getExpiryDateTime()->getTimestamp())
|
||||||
->set('accessToken', $this->accessToken->getIdentifier())
|
->set('uid', $this->accessToken->getUserIdentifier())
|
||||||
->set('scopes', $this->accessToken->getScopes())
|
->set('scopes', $this->accessToken->getScopes())
|
||||||
|
->set('accessToken', $this->accessToken->getIdentifier())
|
||||||
->sign(new Sha256(), new Key($this->pathToPrivateKey))
|
->sign(new Sha256(), new Key($this->pathToPrivateKey))
|
||||||
->getToken();
|
->getToken();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user