From f9842acf2928fdf36d1ea351d0b9d6880752945d Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Tue, 7 Mar 2017 19:09:41 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B2=D0=B5=D0=BB=D0=B8=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=B2=D1=80=D0=B5=D0=BC=D1=8F=20=D0=B6=D0=B8?= =?UTF-8?q?=D0=B7=D0=BD=D0=B8=20access=5Ftoken?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/components/OAuth2/Component.php | 1 + 1 file changed, 1 insertion(+) 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;