From db8c4fff2c93ea998c194c996fbb86e41ccb5cd0 Mon Sep 17 00:00:00 2001 From: FragginWagon Date: Thu, 29 Jan 2026 21:24:37 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=92=20Update=20Challonge=20client=20cr?= =?UTF-8?q?edentials=20handling=20with=20refined=20property=20names=20and?= =?UTF-8?q?=20methods?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pokedex.online/src/views/AuthenticationHub.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/code/websites/pokedex.online/src/views/AuthenticationHub.vue b/code/websites/pokedex.online/src/views/AuthenticationHub.vue index a916cf2..12bf760 100644 --- a/code/websites/pokedex.online/src/views/AuthenticationHub.vue +++ b/code/websites/pokedex.online/src/views/AuthenticationHub.vue @@ -368,14 +368,14 @@ const challongeOAuthRefreshedAt = computed(() => { // Challonge Client Credentials const challengeClientCreds = useChallongeClientCredentials(); const hasChallongeClientCredentials = computed( - () => challengeClientCreds.isConfigured.value + () => challengeClientCreds.hasCredentials.value ); const isChallongeClientCredentialsValid = computed( - () => challengeClientCreds.isValid.value + () => challengeClientCreds.isAuthenticated.value ); -const challongeClientId = computed(() => challengeClientCreds.clientId.value); +const challongeClientId = computed(() => challengeClientCreds.maskedClientId.value); const challongeClientExpiresIn = computed( - () => challengeClientCreds.expiresIn.value + () => challengeClientCreds.tokenInfo.value?.expiresIn ); const newClientId = ref(''); const newClientSecret = ref(''); @@ -446,7 +446,7 @@ function disconnectChallongeOAuth() { function saveChallongeClientCredentials() { try { - challengeClientCreds.save(newClientId.value, newClientSecret.value); + challengeClientCreds.saveCredentials(newClientId.value, newClientSecret.value); newClientId.value = ''; newClientSecret.value = ''; successMessage.value = 'Client credentials saved!'; @@ -458,7 +458,7 @@ function saveChallongeClientCredentials() { function deleteChallongeClientCredentials() { if (confirm('Delete client credentials?')) { - challengeClientCreds.delete(); + challengeClientCreds.clearCredentials(); successMessage.value = 'Client credentials deleted'; setTimeout(() => (successMessage.value = ''), 3000); }