From b93bf12117465b68342a1567c0a15d4f503155fe Mon Sep 17 00:00:00 2001
From: ieow <cwlee0@gmail.com>
Date: Thu, 4 Apr 2024 14:18:38 +0800
Subject: [PATCH] feat: use fnd network

---
 .../SingleFactorAuthArgs.swift                | 34 ++-----------------
 1 file changed, 2 insertions(+), 32 deletions(-)

diff --git a/Sources/SingleFactorAuth/SingleFactorAuthArgs.swift b/Sources/SingleFactorAuth/SingleFactorAuthArgs.swift
index e024921..9941aec 100644
--- a/Sources/SingleFactorAuth/SingleFactorAuthArgs.swift
+++ b/Sources/SingleFactorAuth/SingleFactorAuthArgs.swift
@@ -50,41 +50,11 @@ public enum Web3AuthNetwork : Equatable, Hashable {
     case CUSTOM(path: String)
     
     public var path: String {
-        switch self {
-        case .SAPPHIRE_DEVNET:
-            return "sapphire_devnet"
-        case .SAPPHIRE_MAINNET:
-            return "sapphire_mainnet"
-        case .MAINNET:
-            return "mainnet"
-        case .TESTNET:
-            return "goerli"
-        case .CYAN, .AQUA, .CELESTE:
-            return "polygon-mainnet"
-        case let .CUSTOM(path):
-            return path
-        }
+        return self.network.path
     }
     
     public var name: String {
-        switch self {
-        case .SAPPHIRE_DEVNET:
-            return "sapphire_devnet"
-        case .SAPPHIRE_MAINNET:
-            return "sapphire_mainnet"
-        case .MAINNET:
-            return "mainnet"
-        case .TESTNET:
-            return "testnet"
-        case .CYAN :
-            return "cyan"
-        case .AQUA :
-            return "aqua"
-        case .CELESTE:
-            return "celeste"
-        case .CUSTOM(_):
-            return "custom"
-        }
+        return self.network.name
     }
     
     public var network: TorusNetwork {