protected function registerAuth()
    {
        $this->app->singleton('api.auth', function ($app) {
            return new NodesAuth($app['api.router'], $app, prepare_config_instances(config('nodes.api.auth.providers')));
        });
    }