From 563b72ff90f90cbd04211b34aad74a7aa5717851 Mon Sep 17 00:00:00 2001 From: duanshuwen Date: Mon, 22 Jun 2026 10:00:31 +0800 Subject: [PATCH] refactor(login): rename clientId to clientConfigld standardize parameter name across login flows, add missing clientConfigld to Google OAuth login request --- src/api/login.ts | 2 +- src/pages/login/index.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/login.ts b/src/api/login.ts index a9a115a..6a5d441 100644 --- a/src/api/login.ts +++ b/src/api/login.ts @@ -9,7 +9,7 @@ export interface OauthTokenRequest { scope?: string; mobile?: string; code?: string; - clientId?: string; + clientConfigld?: string; [property: string]: any; } diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 3c89338..61b7352 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -253,7 +253,7 @@ async function handlePhoneLogin() { mobile: `${selectedCountry.value.dialCode}${phoneDigits}`, code: codeValue, grant_type: "mobile", - clientId: '6', + clientConfigld: '6', }); emitter.emit(NOTICE_EVENT_LOGIN_SUCCESS); await navigateAfterLogin(); @@ -332,7 +332,7 @@ onMounted(() => { const idToken = response.credential; if (idToken) { - oauthToken({ openIdCode: [idToken], grant_type: 'google' }) + oauthToken({ openIdCode: [idToken], grant_type: 'google', clientConfigld: '6' }) .then(() => { emitter.emit(NOTICE_EVENT_LOGIN_SUCCESS); return navigateAfterLogin()