mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-31 17:30:21 +05:30
Merge pull request #576 from stratoss/stratoss-patch-1
Adding missing variable
This commit is contained in:
commit
7db69cceb6
@ -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 %}
|
||||
{% endhighlight %}
|
||||
|
Loading…
Reference in New Issue
Block a user