Skip to content

Commit 00cfc46

Browse files
committed
feat: passport config for windows pkce
1 parent 295c781 commit 00cfc46

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Assets/Shared/Scripts/Model/Config.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ public static class Config
1010

1111
public const string ENVIRONMENT = "sandbox";
1212

13-
#if (UNITY_ANDROID && !UNITY_EDITOR_WIN) || (UNITY_IPHONE && !UNITY_EDITOR_WIN) || UNITY_STANDALONE_OSX
14-
public const string REDIRECT_URI = "immutablerunner://callback";
15-
public const string LOGOUT_REIDIRECT_URI = "immutablerunner://logout";
16-
#elif UNITY_WEBGL && !UNITY_EDITOR
13+
#if UNITY_WEBGL && !UNITY_EDITOR
1714
private static readonly string url = Application.absoluteURL;
1815
private static readonly Uri uri = new Uri(url);
1916
private static readonly string scheme = uri.Scheme;
@@ -24,8 +21,8 @@ public static class Config
2421
public static readonly string REDIRECT_URI = $"{scheme}://{hostWithPort}{fullPath}callback.html";
2522
public static readonly string LOGOUT_REIDIRECT_URI = $"{scheme}://{hostWithPort}{fullPath}logout.html";
2623
#else
27-
public const string REDIRECT_URI = null;
28-
public const string LOGOUT_REIDIRECT_URI = null;
24+
public const string REDIRECT_URI = "immutablerunner://callback";
25+
public const string LOGOUT_REIDIRECT_URI = "immutablerunner://logout";
2926
#endif
3027

3128
public const string CHAIN_NAME = "imtbl-zkevm-testnet";

0 commit comments

Comments
 (0)