Skip to content

Commit 9ba177a

Browse files
committed
resolved PR comments
Signed-off-by: Gaurav Goel <[email protected]>
1 parent 44ffcdf commit 9ba177a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Assets/Plugins/Web3AuthSDK/Web3Auth.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ private async void request(string path, LoginParams loginParams = null, Dictiona
276276
uriBuilder.Fragment = "b64Params=" + hash;
277277

278278
Utils.LaunchUrl(uriBuilder.ToString(), this.initParams["redirectUrl"].ToString(), gameObject.name);
279+
} else {
280+
throw new Exception("Some went wrong. Please try again later.");
279281
}
280282
}
281283

@@ -503,6 +505,7 @@ private async Task<string> createSession(string data, long sessionTime) {
503505
}
504506
catch (Exception ex)
505507
{
508+
newSessionKey = null;
506509
Debug.LogError(ex.Message);
507510
}
508511
}

0 commit comments

Comments
 (0)