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