diff --git a/code/websites/pokedex.online/src/views/ChallongeTest.vue b/code/websites/pokedex.online/src/views/ChallongeTest.vue index 2c2c945..e4d0114 100644 --- a/code/websites/pokedex.online/src/views/ChallongeTest.vue +++ b/code/websites/pokedex.online/src/views/ChallongeTest.vue @@ -423,7 +423,7 @@ const client = computed(() => { // Smart priority based on scope selection: // - APPLICATION scope: prefer client credentials (they're designed for this) // - USER scope: prefer OAuth user tokens or API key (client creds don't work well here) - + if (tournamentScope.value === ScopeType.APPLICATION) { // APPLICATION scope - prefer client credentials if (isClientCredsAuthenticated.value && clientCredsToken.value) { @@ -455,7 +455,7 @@ const client = computed(() => { ); } } - + // Fallback: try API key if (apiKey.value) { console.log('🔑 Using API Key (fallback)'); @@ -464,7 +464,7 @@ const client = computed(() => { { debug: debugMode.value } ); } - + return null; } });