public function handleProviderCallback($provider)
    {
        try {
            $user = $this->socialProvider->driver($provider)->user();
        } catch (Exception $e) {
            return Redirect::to('auth/' . $provider);
        }

        $this->auth->login($this->users->provider($provider)->findOrCreateUser($user), true);

        return redirect()->intended($this->redirectPath());
    }