feat: 登录参数改造
This commit is contained in:
@@ -98,11 +98,16 @@ export const refreshToken = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
openIdCode: [openIdCode],
|
|
||||||
grant_type: grant_type,
|
grant_type: grant_type,
|
||||||
clientId: clientId,
|
clientId: clientId,
|
||||||
scope: "server",
|
scope: "server",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (provider === "apple") {
|
||||||
|
params.identityToken = openIdCode;
|
||||||
|
} else {
|
||||||
|
params.openIdCode = [openIdCode];
|
||||||
|
}
|
||||||
console.log("获取到的授权params:", JSON.stringify(params));
|
console.log("获取到的授权params:", JSON.stringify(params));
|
||||||
|
|
||||||
const response = await oauthToken(params);
|
const response = await oauthToken(params);
|
||||||
|
|||||||
@@ -47,11 +47,17 @@ const loginAuth = (e) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
openIdCode: [openIdCode],
|
|
||||||
grant_type: grant_type,
|
grant_type: grant_type,
|
||||||
clientId: clientId,
|
clientId: clientId,
|
||||||
scope: "server",
|
scope: "server",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (provider === "apple") {
|
||||||
|
params.identityToken = openIdCode;
|
||||||
|
} else {
|
||||||
|
params.openIdCode = [openIdCode];
|
||||||
|
}
|
||||||
|
|
||||||
console.log("获取到的授权params:", JSON.stringify(params));
|
console.log("获取到的授权params:", JSON.stringify(params));
|
||||||
|
|
||||||
const response = await oauthToken(params);
|
const response = await oauthToken(params);
|
||||||
|
|||||||
Reference in New Issue
Block a user