openyida 2026.5.9-beta.3 → 2026.5.9-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -401,14 +401,14 @@ async function confirmDingtalkOAuthAuth(context, cookieHeader, loginResult = {},
401
401
  const targetCorpId = options.corpId || loginResult.corpId || context.corpId || '';
402
402
  const redirectUri = getDingtalkOAuthRedirectUri(context);
403
403
 
404
- const postData = new URLSearchParams();
405
- if (targetCorpId) {postData.set('corpId', targetCorpId);}
404
+ const confirmParams = {};
405
+ if (targetCorpId) {confirmParams.corpId = targetCorpId;}
406
406
  if (loginResult.secondaryValidationResult) {
407
- postData.set('secondaryValidationResult', loginResult.secondaryValidationResult);
407
+ confirmParams.secondaryValidationResult = loginResult.secondaryValidationResult;
408
408
  }
409
- if (redirectUri) {postData.set('redirect_uri', redirectUri);}
409
+ if (redirectUri) {confirmParams.redirect_uri = redirectUri;}
410
410
 
411
- const response = await postConfirmAuth(confirmUrl, postData.toString(), {
411
+ const response = await postConfirmAuth(confirmUrl, buildOAuthPostData(context.loginPageUrl, confirmParams), {
412
412
  cookieHeader,
413
413
  referer: context.loginPageUrl,
414
414
  origin: context.origin,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openyida",
3
- "version": "2026.5.9-beta.3",
3
+ "version": "2026.5.9-beta.4",
4
4
  "description": "OpenYida CLI - 宜搭低代码 AI 开发工具(安装即用,零配置)",
5
5
  "bin": {
6
6
  "openyida": "bin/yida.js",