From 7a6be75f5400ca08cce7d5731e49a6fe45c6341f Mon Sep 17 00:00:00 2001 From: jmventar Date: Wed, 15 Jun 2016 17:06:15 +0200 Subject: [PATCH] Wrong type on refreshTokenTTL setter --- auth-server-auth-code.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth-server-auth-code.md b/auth-server-auth-code.md index fcd869d2..b32aa00e 100755 --- a/auth-server-auth-code.md +++ b/auth-server-auth-code.md @@ -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(