diff --git a/functions.php b/functions.php
index 722b012..f8a9d0f 100644
--- a/functions.php
+++ b/functions.php
@@ -224,6 +224,9 @@ function get_refresh_token()
document.cookie=\'language=; path=/\';
';
setConfig([ 'refresh_token' => $tmptoken ]);
+ $cache = null;
+ $cache = new \Doctrine\Common\Cache\FilesystemCache(sys_get_temp_dir(), '.Onedrive');
+ $cache->save('access_token', $ret['access_token'], $ret['expires_in'] - 60);
$str .= '
';
return message($str, $constStr['WaitJumpIndex'][$constStr['language']]);
@@ -303,7 +306,7 @@ Can not write config to file.
}
$html .= '