diff --git a/auth-server-implicit.md b/auth-server-implicit.md index 893fd1e5..40913bb7 100755 --- a/auth-server-implicit.md +++ b/auth-server-implicit.md @@ -61,7 +61,7 @@ $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 +113,4 @@ $app->get('/authorize', function (ServerRequestInterface $request, ResponseInter } }); -{% endhighlight %} \ No newline at end of file +{% endhighlight %}