Skip to content

Commit 372e558

Browse files
committed
feat: manageMFA added.
Signed-off-by: Gaurav Goel <[email protected]>
1 parent 1b1bb60 commit 372e558

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

Assets/Plugins/Web3AuthSDK/Types/Web3AuthOptions.cs

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,20 @@ public string walletSdkUrl {
4040
public ChainConfig? chainConfig { get; set; }
4141
public Dictionary<string, string> originData { get; set; } = null;
4242

43-
public string dashboardUrl {
44-
get {
45-
if (buildEnv == Web3Auth.BuildEnv.STAGING)
46-
return "https://staging-account.web3auth.io/v9/wallet/account";
47-
else if (buildEnv == Web3Auth.BuildEnv.TESTING)
48-
return "https://develop-account.web3auth.io/wallet/account";
49-
else
50-
return "https://account.web3auth.io/v9/wallet/account";
43+
public string dashboardUrl
44+
{
45+
get
46+
{
47+
return buildEnv switch
48+
{
49+
Web3Auth.BuildEnv.STAGING => $"https://staging-account.web3auth.io/{authDashboardVersion}/{walletAccountConstant}",
50+
Web3Auth.BuildEnv.TESTING => $"https://develop-account.web3auth.io/{walletAccountConstant}",
51+
_ => $"https://account.web3auth.io/{authDashboardVersion}/{walletAccountConstant}"
52+
};
5153
}
5254
set { }
5355
}
56+
57+
private const string authDashboardVersion = "v9";
58+
private const string walletAccountConstant = "wallet/account";
5459
}

0 commit comments

Comments
 (0)