public function connectOAuth(OAuthToken $request, OAuthDriver $driver, OAuthHandler $oAuthHandler): JsonResource 	{ 		$oAuthUser = $oAuthHandler->getUser($driver, $request->access_token);  		if (!$oAuthUser instanceof User) { 			abort(401, $oAuthHandler->getLastExceptionMessage() ?? ''); 		}  		$user = $request->user(); 		$syncData = $request->boolean('sync_data');  		$user->update([ 			'name' => $syncData ? $oAuthUser->getName() : $user->name, 			'email' => $syncData ? $oAuthUser->getEmail() : $user->email, 			'avatar' => $syncData ? $oAuthUser->getAvatar() : $user->getAvatar(), 		]);  		$user->connectOAuthDriver($driver, $oAuthUser->getId());  		return $user->getModelResource(); 	}