Skip to content

Commit 76deb5b

Browse files
committed
fix: webgl login method
1 parent 4e2de71 commit 76deb5b

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/Packages/Passport/Samples~/sample/Assets/Scripts/SelectAuthMethodScript.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ public class SelectAuthMethodScript : MonoBehaviour
1616

1717
void Start()
1818
{
19+
// Determine if PKCE is supported based on the platform
20+
SampleAppManager.SupportsPKCE = IsPKCESupported();
21+
1922
// WebGL does not support Device Code Auth, so we'll use PKCE by default instead.
2023
#if UNITY_WEBGL
2124
UsePKCE();
2225
#else
23-
// Determine if PKCE is supported based on the platform
24-
SampleAppManager.SupportsPKCE = IsPKCESupported();
25-
2626
// If PKCE is not supported, initialise Passport to use Device Code Auth
2727
if (!SampleAppManager.SupportsPKCE)
2828
{

src/Packages/Passport/Samples~/sample/ProjectSettings/PackageManagerSettings.asset

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ MonoBehaviour:
5050
m_IsDefault: 0
5151
m_Capabilities: 0
5252
m_ConfigSource: 4
53-
m_UserSelectedRegistryName: npmjs
53+
m_UserSelectedRegistryName: Open UPM Packages
5454
m_UserAddingNewScopedRegistry: 0
5555
m_RegistryInfoDraft:
5656
m_Modified: 0

src/Packages/Passport/Samples~/sample/ProjectSettings/ProjectSettings.asset

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,9 @@ PlayerSettings:
502502
- m_BuildTarget: WindowsStandaloneSupport
503503
m_APIs: 02000000
504504
m_Automatic: 1
505+
- m_BuildTarget: WebGLSupport
506+
m_APIs: 080000000b000000
507+
m_Automatic: 1
505508
m_BuildTargetVRSettings: []
506509
m_DefaultShaderChunkSizeInMB: 16
507510
m_DefaultShaderChunkCount: 0
@@ -762,7 +765,7 @@ PlayerSettings:
762765
webGLTemplate: PROJECT:unity-webview
763766
webGLAnalyzeBuildSize: 0
764767
webGLUseEmbeddedResources: 0
765-
webGLCompressionFormat: 0
768+
webGLCompressionFormat: 2
766769
webGLWasmArithmeticExceptions: 0
767770
webGLLinkerTarget: 1
768771
webGLThreadsSupport: 0

0 commit comments

Comments
 (0)