diff --git a/api/components/OAuth2/Component.php b/api/components/OAuth2/Component.php index 940e29b..d6ad066 100644 --- a/api/components/OAuth2/Component.php +++ b/api/components/OAuth2/Component.php @@ -48,6 +48,7 @@ class Component extends \yii\base\Component { $authServer->setAuthCodeStorage(new AuthCodeStorage()); $authServer->setRefreshTokenStorage(new RefreshTokenStorage()); $authServer->setScopeDelimiter(','); + $authServer->setAccessTokenTTL(86400); // 1d $this->_authServer = $authServer;