Skip to content

Commit 0ad683d

Browse files
committed
feat: code refactored for sessionId.
Signed-off-by: Gaurav Goel <[email protected]>
1 parent 861c632 commit 0ad683d

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Assets/Plugins/Web3AuthSDK/Samples/Web3AuthSample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void Start()
9595
}
9696
*/
9797
clientId = "BFuUqebV5I8Pz5F7a5A2ihW7YVmbv_OHXnHYDv6OltAD5NGr6e-ViNvde3U4BHdn6HvwfkgobhVu4VwC-OSJkik",
98-
buildEnv = BuildEnv.TESTING,
98+
buildEnv = BuildEnv.PRODUCTION,
9999
redirectUrl = new Uri("torusapp://com.torus.Web3AuthUnity"),
100100
network = Web3Auth.Network.SAPPHIRE_DEVNET,
101101
sessionTime = 86400

Assets/Plugins/Web3AuthSDK/Types/Web3AuthOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ public string sdkUrl {
2323
public string walletSdkUrl {
2424
get {
2525
if (buildEnv == Web3Auth.BuildEnv.STAGING)
26-
return "https://staging-wallet.web3auth.io/v2";
26+
return "https://staging-wallet.web3auth.io/v3";
2727
else if (buildEnv == Web3Auth.BuildEnv.TESTING)
2828
return "https://develop-wallet.web3auth.io";
2929
else
30-
return "https://wallet.web3auth.io/v2";
30+
return "https://wallet.web3auth.io/v3";
3131
}
3232
set { }
3333
}

Assets/Plugins/Web3AuthSDK/Web3Auth.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,8 +790,7 @@ private async Task<string> createSession(string data, long sessionTime, string a
790790
{
791791
try
792792
{
793-
// Debug.Log("newSessionKey before saving into keystore =>" + newSessionKey);
794-
this.Enqueue(() => KeyStoreManagerUtils.savePreferenceData(KeyStoreManagerUtils.SESSION_ID, newSessionKey));
793+
// Debug.Log("newSessionKey before saving into keystore =>" + newSessionKey)
795794
createSessionResponse.SetResult(newSessionKey);
796795
}
797796
catch (Exception ex)

0 commit comments

Comments
 (0)