From 4b38cc8191c957efc01017c1d8b785e7c639b334 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Fri, 29 Apr 2016 14:25:58 +0100 Subject: [PATCH] Fixes #562 --- auth-server-password.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth-server-password.md b/auth-server-password.md index 501e85c0..69c4bb9d 100755 --- a/auth-server-password.md +++ b/auth-server-password.md @@ -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(