mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-03-01 14:12:50 +05:30
Merge pull request #595 from jmventar/patch-1
Wrong type on refreshTokenTTL setter
This commit is contained in:
commit
f4c176934a
@ -79,7 +79,7 @@ $grant = new \League\OAuth2\Server\Grant\AuthCodeGrant(
|
|||||||
new \DateInterval('PT10M') // authorization codes will expire after 10 minutes
|
new \DateInterval('PT10M') // authorization codes will expire after 10 minutes
|
||||||
);
|
);
|
||||||
|
|
||||||
$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 authentication code grant on the server
|
// Enable the authentication code grant on the server
|
||||||
$server->enableGrantType(
|
$server->enableGrantType(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user