Skip to content

Commit efbbfbf

Browse files
authored
Merge pull request #302 from 0xsequence/Fix/google-login-hint
Checking if the cached email value is empty to avoid having the 'login_hint' inside the sign-in url
2 parents 51aa5eb + c6896c7 commit efbbfbf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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(" ", "");

Packages/Sequence-Unity/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xyz.0xsequence.waas-unity",
3-
"version": "4.2.0",
3+
"version": "4.2.1",
44
"displayName": "Sequence Embedded Wallet SDK",
55
"description": "A Unity SDK for Sequence APIs",
66
"unity": "2021.3",

0 commit comments

Comments
 (0)