protected function loadClientSecretFromFile(string $filePath)
    {
        $this->logger->info('Getting the Google API client secret from the `'.$filePath.'` file');

        try {
            $secretData = $this->loadCredentialJSON($filePath);
        } catch (\RuntimeException $exception) {
            throw new \RuntimeException('Couldn\'t parse the client secret file: '.$exception->getMessage());
        }

        try {
            $this->client->setAuthConfig($secretData);
        } catch (\Exception $exception) {
            throw new \RuntimeException('Failed to apply the client secret from file `'.$filePath.'` to Google SDK: '.$exception->getMessage());
        }
    }