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 %}