public function update(ConfigurationUpdaterListener $listener, array $input)
    {
        try {

            foreach (array_get($input, 'drivers', []) as $driver => $config) {
                $this->authProviderService->updateDriver($driver, $config);
                event('api.driver.' . $driver . '.update', [$input, $this->authProviderService]);
            }

            $this->authProviderService->save();
        } catch (Exception $e) {
            Log::emergency($e);
            return $listener->updateAuthFailed(['error' => $e->getMessage()]);
        }

        return $listener->authUpdated();
    }