mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-01 01:40:21 +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())
|
||||
->setNotBefore(time())
|
||||
->setExpiration($this->refreshToken->getExpiryDateTime()->getTimestamp())
|
||||
->set('accessToken', $this->accessToken->getIdentifier())
|
||||
->set('uid', $this->accessToken->getUserIdentifier())
|
||||
->set('scopes', $this->accessToken->getScopes())
|
||||
->set('accessToken', $this->accessToken->getIdentifier())
|
||||
->sign(new Sha256(), new Key($this->pathToPrivateKey))
|
||||
->getToken();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user