protected function registerSocialAuth()
    {
        // Session storage
        $storage = new Session();
        $factory = new \OAuth\ServiceFactory();

        foreach ($this->config['active'] as $key => $social) {
            $this->app->singleton($social, function ($c) use ($social, $factory, $storage) {
                // Setup the credentials for the requests
                $credentials = new Credentials(
                    $this->config[$social]['key'],
                    $this->config[$social]['secret'],
                    $this->app->request->getFullUrl()
                );

                return $factory->createService($social, $credentials, $storage, []);
            });
        }
    }