Merge pull request #709 from toby-griffiths/fix-refresh-token-ttl

Corrected DateInterval from 1 min to 1 month
This commit is contained in:
Alex Bilbie 2017-03-02 14:06:27 +00:00 committed by GitHub
commit bf7084a147

View File

@ -62,7 +62,7 @@ $app = new App([
// Enable the refresh token grant on the server with a token TTL of 1 month // Enable the refresh token grant on the server with a token TTL of 1 month
$server->enableGrantType( $server->enableGrantType(
new RefreshTokenGrant($refreshTokenRepository), new RefreshTokenGrant($refreshTokenRepository),
new \DateInterval('PT1M') new \DateInterval('P1M')
); );
return $server; return $server;