Wrong type on refreshTokenTTL setter

This commit is contained in:
jmventar 2016-06-15 17:06:15 +02:00 committed by GitHub
parent ff476fcb2b
commit 7a6be75f54

View File

@ -79,7 +79,7 @@ $grant = new \League\OAuth2\Server\Grant\AuthCodeGrant(
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
$server->enableGrantType(