feat: 登录参数改造

This commit is contained in:
zoujing committed 2026-05-10 12:19:50 +08:00
1 parent b070429f5c
commit bbca2d14c9
2 files changed
+13 -2

No files matched your search

+6 -1
View File
@@ -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);
+7 -1
View File
@@ -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);