This commit is contained in:
Alex Bilbie 2016-04-29 14:25:58 +01:00
parent 3710de8a42
commit 4b38cc8191

View File

@ -59,7 +59,7 @@ $grant = new \League\OAuth2\Server\Grant\PasswordGrant(
$refreshTokenRepository
);
$grant->setRefreshTokenTTL(new \DateTime('P1M')); // refresh tokens will expire after 1 month
$grant->setRefreshTokenTTL(new \DateInterval('P1M')); // refresh tokens will expire after 1 month
// Enable the password grant on the server
$server->enableGrantType(