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;
|
scope?: string;
|
||||||
mobile?: string;
|
mobile?: string;
|
||||||
code?: string;
|
code?: string;
|
||||||
clientId?: string;
|
clientConfigld?: string;
|
||||||
[property: string]: any;
|
[property: string]: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ async function handlePhoneLogin() {
|
|||||||
mobile: `${selectedCountry.value.dialCode}${phoneDigits}`,
|
mobile: `${selectedCountry.value.dialCode}${phoneDigits}`,
|
||||||
code: codeValue,
|
code: codeValue,
|
||||||
grant_type: "mobile",
|
grant_type: "mobile",
|
||||||
clientId: '6',
|
clientConfigld: '6',
|
||||||
});
|
});
|
||||||
emitter.emit(NOTICE_EVENT_LOGIN_SUCCESS);
|
emitter.emit(NOTICE_EVENT_LOGIN_SUCCESS);
|
||||||
await navigateAfterLogin();
|
await navigateAfterLogin();
|
||||||
@@ -332,7 +332,7 @@ onMounted(() => {
|
|||||||
const idToken = response.credential;
|
const idToken = response.credential;
|
||||||
|
|
||||||
if (idToken) {
|
if (idToken) {
|
||||||
oauthToken({ openIdCode: [idToken], grant_type: 'google' })
|
oauthToken({ openIdCode: [idToken], grant_type: 'google', clientConfigld: '6' })
|
||||||
.then(() => {
|
.then(() => {
|
||||||
emitter.emit(NOTICE_EVENT_LOGIN_SUCCESS);
|
emitter.emit(NOTICE_EVENT_LOGIN_SUCCESS);
|
||||||
return navigateAfterLogin()
|
return navigateAfterLogin()
|
||||||
|
|||||||
Reference in New Issue
Block a user