feat: 登录参数改造

This commit is contained in:
2026-05-10 12:19:50 +08:00
parent b070429f5c
commit bbca2d14c9
2 changed files with 13 additions and 2 deletions

View File

@@ -98,11 +98,16 @@ export const refreshToken = () => {
}
const params = {
openIdCode: [openIdCode],
grant_type: grant_type,
clientId: clientId,
scope: "server",
};
if (provider === "apple") {
params.identityToken = openIdCode;
} else {
params.openIdCode = [openIdCode];
}
console.log("获取到的授权params:", JSON.stringify(params));
const response = await oauthToken(params);

View File

@@ -47,11 +47,17 @@ const loginAuth = (e) => {
}
const params = {
openIdCode: [openIdCode],
grant_type: grant_type,
clientId: clientId,
scope: "server",
};
if (provider === "apple") {
params.identityToken = openIdCode;
} else {
params.openIdCode = [openIdCode];
}
console.log("获取到的授权params:", JSON.stringify(params));
const response = await oauthToken(params);