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')));
        });
    }
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')));
        });
    }
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' ) ) ) ; } ) ; }
Register the authenticator.

@author Morten Rugaard <moru@nodes.dk>

@return void
Register the authenticator .