mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-28 16:00:24 +05:30
Fixes #562
This commit is contained in:
parent
3710de8a42
commit
4b38cc8191
@ -59,7 +59,7 @@ $grant = new \League\OAuth2\Server\Grant\PasswordGrant(
|
|||||||
$refreshTokenRepository
|
$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
|
// Enable the password grant on the server
|
||||||
$server->enableGrantType(
|
$server->enableGrantType(
|
||||||
|
Loading…
Reference in New Issue
Block a user