mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
[VD:FlysystemGoogleDriveNetmount] show refresh_token into debug tab with debug mode
This commit is contained in:
@@ -337,4 +337,18 @@ class elFinderVolumeFlysystemGoogleDriveNetmount extends ExtDriver
|
||||
return $this->netMountKey . substr(substr($stat['hash'], strlen($this->id)), -38) . $stat['ts'] . '.png';
|
||||
}
|
||||
|
||||
/**
|
||||
* Return debug info for client.
|
||||
*
|
||||
* @return array
|
||||
**/
|
||||
public function debug()
|
||||
{
|
||||
$res = parent::debug();
|
||||
if (!empty($this->options['netkey']) && empty($this->options['refresh_token']) && $this->options['access_token'] && isset($this->options['access_token']['refresh_token'])) {
|
||||
$res['refresh_token'] = $this->options['access_token']['refresh_token'];
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user