fix renew token with multiple servers
This commit is contained in:
parent
c3b20841c9
commit
8989054aa1
@ -35,7 +35,7 @@ class MatchManagerGSheet implements CallbackListener, CommandListener, Plugin {
|
|||||||
* Constants
|
* Constants
|
||||||
*/
|
*/
|
||||||
const PLUGIN_ID = 156;
|
const PLUGIN_ID = 156;
|
||||||
const PLUGIN_VERSION = 0.4;
|
const PLUGIN_VERSION = 0.5;
|
||||||
const PLUGIN_NAME = 'MatchManager GSheet';
|
const PLUGIN_NAME = 'MatchManager GSheet';
|
||||||
const PLUGIN_AUTHOR = 'Beu';
|
const PLUGIN_AUTHOR = 'Beu';
|
||||||
|
|
||||||
@ -287,6 +287,7 @@ class MatchManagerGSheet implements CallbackListener, CommandListener, Plugin {
|
|||||||
|
|
||||||
private function refreshTokenIfNeeded() {
|
private function refreshTokenIfNeeded() {
|
||||||
Logger::Log('refreshTokenIfNeeded');
|
Logger::Log('refreshTokenIfNeeded');
|
||||||
|
$this->access_token = $this->getSecretSetting("access_token");
|
||||||
$expire = $this->getSecretSetting("expire");
|
$expire = $this->getSecretSetting("expire");
|
||||||
$refreshtoken = $this->getSecretSetting("refresh_token");
|
$refreshtoken = $this->getSecretSetting("refresh_token");
|
||||||
$clientid = $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_MATCHMANAGERGSHEET_CLIENT_ID);
|
$clientid = $this->maniaControl->getSettingManager()->getSettingValue($this, self::SETTING_MATCHMANAGERGSHEET_CLIENT_ID);
|
||||||
|
Loading…
Reference in New Issue
Block a user