Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -459,19 +459,20 @@ public async Task ConnectToWaaS(IntentDataOpenSession loginIntent, LoginMethod m
}
catch (Exception e)
{
if (e.Message.Contains(EmailInUseError))
var emailInUse = e.Message.Contains(EmailInUseError);
if (emailInUse)
{
List<LoginMethod> associatedLoginMethods = ParseLoginMethods(e.Message);
OnLoginFailed?.Invoke("Error registering session: " + e.Message, method, email, associatedLoginMethods);
_failedLoginIntent = loginIntent;
_failedLoginMethod = method;
_failedLoginEmail = email;
}
else
{
OnLoginFailed?.Invoke("Error registering session: " + e.Message, method, email);
}
_isLoggingIn = false;
_failedLoginIntent = loginIntent;
_failedLoginMethod = method;
_failedLoginEmail = email;
return;
}

Expand Down Expand Up @@ -632,6 +633,9 @@ public void ForceCreateAccount()

private async Task ForceCreateWaaSAccount()
{
if (string.IsNullOrEmpty(_failedLoginEmail))
throw new Exception("Failed to force create account.");

_failedLoginIntent.forceCreateAccount = true;

await ConnectToWaaS(_failedLoginIntent, _failedLoginMethod, _failedLoginEmail);
Expand Down
2 changes: 1 addition & 1 deletion Packages/Sequence-Unity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xyz.0xsequence.waas-unity",
"version": "5.0.10",
"version": "5.0.11",
"displayName": "Sequence SDK",
"description": "A Unity SDK for Sequence APIs",
"unity": "2021.3",
Expand Down