mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-28 16:00:24 +05:30
commit
7c61922f07
@ -36,7 +36,7 @@ $app = new App([
|
|||||||
// Enable the password grant on the server with a token TTL of 1 hour
|
// Enable the password grant on the server with a token TTL of 1 hour
|
||||||
$server->enableGrantType(
|
$server->enableGrantType(
|
||||||
$grant,
|
$grant,
|
||||||
new \DateInterval('PT1H') // access tokens will expire after 1 month
|
new \DateInterval('PT1H') // access tokens will expire after 1 hour
|
||||||
);
|
);
|
||||||
|
|
||||||
return $server;
|
return $server;
|
||||||
|
Loading…
Reference in New Issue
Block a user