From 4da47684c689d2db396825ee340f7b48b3516521 Mon Sep 17 00:00:00 2001 From: Stanimir Stoyanov Date: Mon, 9 May 2016 12:09:06 +0300 Subject: [PATCH] Adding missing variable ImplicitGrant's constructor requires \DateInterval object --- auth-server-implicit.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/auth-server-implicit.md b/auth-server-implicit.md index 893fd1e5..4203f47e 100755 --- a/auth-server-implicit.md +++ b/auth-server-implicit.md @@ -60,8 +60,9 @@ $server = new \League\OAuth2\Server\AuthorizationServer( ); // Enable the implicit grant on the server + $server->enableGrantType( - new ImplicitGrant(), + new ImplicitGrant(new \DateInterval('PT1H')), new \DateInterval('PT1H') // access tokens will expire after 1 hour ); {% endhighlight %} @@ -113,4 +114,4 @@ $app->get('/authorize', function (ServerRequestInterface $request, ResponseInter } }); -{% endhighlight %} \ No newline at end of file +{% endhighlight %}