refactor(login): rename clientId to clientConfigld

standardize parameter name across login flows, add missing clientConfigld to Google OAuth login request
This commit is contained in:
duanshuwen
2026-06-22 10:00:31 +08:00
parent 8792c6f837
commit 563b72ff90
2 changed files with 3 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ export interface OauthTokenRequest {
scope?: string;
mobile?: string;
code?: string;
clientId?: string;
clientConfigld?: string;
[property: string]: any;
}

View File

@@ -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()