Skip to content

Commit 5b85961

Browse files
committed
Merge branch 'master' into Fix/connected-wallet-address
2 parents a64b4b3 + efbbfbf commit 5b85961

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Packages/Sequence-Unity/Sequence/SequenceSDK/Authentication/OpenIdAuthenticator.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,8 @@ private string GenerateSignInUrl(string baseUrl, string clientId, string state)
231231

232232
string url =
233233
$"{baseUrl}?response_type=code+id_token&client_id={clientId}&redirect_uri={_redirectUrl}&scope=openid+email&state={state}/";
234-
if (PlayerPrefs.HasKey(LoginEmail))
234+
235+
if (PlayerPrefs.HasKey(LoginEmail) && !string.IsNullOrEmpty(PlayerPrefs.GetString(LoginEmail)))
235236
{
236237
url = url.RemoveTrailingSlash() + $"&login_hint={PlayerPrefs.GetString(LoginEmail)}".AppendTrailingSlashIfNeeded();
237238
url = url.Replace(" ", "");

0 commit comments

Comments
 (0)