File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 57
57
VALIDATE_ALL_CODEBASE : true
58
58
DEFAULT_BRANCH : main
59
59
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
60
- FILTER_REGEX_EXCLUDE : (.*src/Packages/Passport/Runtime/ThirdParty/.*|.*src/Packages/Passport/Runtime/Resources/.*|.*Plugins/.*|.*src/Packages/Passport/Runtime/Assets/ImmutableAndroid.androidlib/.*|.*src/Packages/Orderbook|.*sample|.*src/Packages/Passport/WebGLTemplates)
60
+ FILTER_REGEX_EXCLUDE : (.*src/Packages/Passport/Runtime/ThirdParty/.*|.*src/Packages/Passport/Runtime/Resources/.*|.*Plugins/.*|.*src/Packages/Passport/Runtime/Assets/ImmutableAndroid.androidlib/.*|.*src/Packages/Orderbook|.*sample|.*src/Packages/Passport/WebGLTemplates~ )
61
61
VALIDATE_MARKDOWN : false
62
62
VALIDATE_GITLEAKS : false
63
63
VALIDATE_JSCPD : false
Original file line number Diff line number Diff line change @@ -16,14 +16,19 @@ public class SelectAuthMethodScript : MonoBehaviour
16
16
17
17
void Start ( )
18
18
{
19
+ // WebGL does not support Device Code Auth, so we'll use PKCE by default instead.
20
+ #if UNITY_WEBGL
21
+ UsePKCE ( ) ;
22
+ #else
19
23
// Determine if PKCE is supported based on the platform
20
24
SampleAppManager . SupportsPKCE = IsPKCESupported ( ) ;
21
25
22
26
// If PKCE is not supported, initialise Passport to use Device Code Auth
23
27
if ( ! SampleAppManager . SupportsPKCE )
24
28
{
25
- InitialisePassport ( logoutRedirectUri : "https://www.immutable.com" ) ;
29
+ UseDeviceCodeAuth ( ) ;
26
30
}
31
+ #endif
27
32
}
28
33
29
34
/// <summary>
You can’t perform that action at this time.
0 commit comments