Skip to content

Commit

Permalink
fix: webgl login method
Browse files Browse the repository at this point in the history
  • Loading branch information
nattb8 committed Oct 15, 2024
1 parent 4e2de71 commit 76deb5b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ public class SelectAuthMethodScript : MonoBehaviour

void Start()
{
// Determine if PKCE is supported based on the platform
SampleAppManager.SupportsPKCE = IsPKCESupported();

// WebGL does not support Device Code Auth, so we'll use PKCE by default instead.
#if UNITY_WEBGL
UsePKCE();
#else
// Determine if PKCE is supported based on the platform
SampleAppManager.SupportsPKCE = IsPKCESupported();

// If PKCE is not supported, initialise Passport to use Device Code Auth
if (!SampleAppManager.SupportsPKCE)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ MonoBehaviour:
m_IsDefault: 0
m_Capabilities: 0
m_ConfigSource: 4
m_UserSelectedRegistryName: npmjs
m_UserSelectedRegistryName: Open UPM Packages
m_UserAddingNewScopedRegistry: 0
m_RegistryInfoDraft:
m_Modified: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,9 @@ PlayerSettings:
- m_BuildTarget: WindowsStandaloneSupport
m_APIs: 02000000
m_Automatic: 1
- m_BuildTarget: WebGLSupport
m_APIs: 080000000b000000
m_Automatic: 1
m_BuildTargetVRSettings: []
m_DefaultShaderChunkSizeInMB: 16
m_DefaultShaderChunkCount: 0
Expand Down Expand Up @@ -762,7 +765,7 @@ PlayerSettings:
webGLTemplate: PROJECT:unity-webview
webGLAnalyzeBuildSize: 0
webGLUseEmbeddedResources: 0
webGLCompressionFormat: 0
webGLCompressionFormat: 2
webGLWasmArithmeticExceptions: 0
webGLLinkerTarget: 1
webGLThreadsSupport: 0
Expand Down

0 comments on commit 76deb5b

Please sign in to comment.