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:
@@ -9,7 +9,7 @@ export interface OauthTokenRequest {
|
||||
scope?: string;
|
||||
mobile?: string;
|
||||
code?: string;
|
||||
clientId?: string;
|
||||
clientConfigld?: string;
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user