protected function storeToken($token) { file_put_contents($this->configPath(), json_encode(['token' => $token], JSON_PRETTY_PRINT) . PHP_EOL); }