mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-23 05:29:52 +05:30
Adding missing variable
ImplicitGrant's constructor requires \DateInterval object
This commit is contained in:
parent
4b38cc8191
commit
4da47684c6
@ -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 %}
|
||||
{% endhighlight %}
|
||||
|
Loading…
Reference in New Issue
Block a user