public function oAuthCallback(OAuthDriver $driver): RedirectResponse 	{ 		$oAuthHandler = new OAuthHandler; 		$user = $oAuthHandler->getUser($driver);  		if (!$user instanceof \Laravel\Socialite\Contracts\User) { 			abort(401, $oAuthHandler->getLastExceptionMessage() ?? ''); 		}  		$check = User::hasOAuthDriver($driver, $user)->first();  		if ($check) { 			$check->update([ 				'avatar' => $user->getAvatar(), 			]);  			$check->connectOAuthDriver($driver, $user->getId());  			if (auth()->check()) { 				auth()->logout(); 			}  			auth()->login($check);  			$check->fireLoginEvent();  			return redirect()->intended(route('home')); 		}  		if (!setting('registration_active')) { 			abort(403); 		}  		return redirect()->route('register')->with([ 			'oauth_user' => $user, 			'oauth_driver' => $driver->value, 		]); 	}