mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
refreshTokenRepository
parameter can not be null, condition is obsolete
This commit is contained in:
@ -35,10 +35,7 @@ class PasswordGrant extends AbstractGrant
|
|||||||
RefreshTokenRepositoryInterface $refreshTokenRepository
|
RefreshTokenRepositoryInterface $refreshTokenRepository
|
||||||
) {
|
) {
|
||||||
$this->setUserRepository($userRepository);
|
$this->setUserRepository($userRepository);
|
||||||
|
|
||||||
if ($refreshTokenRepository !== null) {
|
|
||||||
$this->setRefreshTokenRepository($refreshTokenRepository);
|
$this->setRefreshTokenRepository($refreshTokenRepository);
|
||||||
}
|
|
||||||
|
|
||||||
$this->refreshTokenTTL = new DateInterval('P1M');
|
$this->refreshTokenTTL = new DateInterval('P1M');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user