mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 21:19:46 +05:30
explicit is better than implicit :)
This commit is contained in:
parent
64f0d89fad
commit
0742d5150c
@ -478,7 +478,7 @@ abstract class AbstractGrant implements GrantTypeInterface
|
|||||||
{
|
{
|
||||||
$refreshToken = $this->refreshTokenRepository->getNewRefreshToken();
|
$refreshToken = $this->refreshTokenRepository->getNewRefreshToken();
|
||||||
if ($refreshToken === null) {
|
if ($refreshToken === null) {
|
||||||
return;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$refreshToken->setExpiryDateTime((new DateTime())->add($this->refreshTokenTTL));
|
$refreshToken->setExpiryDateTime((new DateTime())->add($this->refreshTokenTTL));
|
||||||
|
Loading…
Reference in New Issue
Block a user