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.
- package/lib/auth/qr-login.js +5 -5
- package/package.json +1 -1
package/lib/auth/qr-login.js
CHANGED
|
@@ -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
|
|
405
|
-
if (targetCorpId) {
|
|
404
|
+
const confirmParams = {};
|
|
405
|
+
if (targetCorpId) {confirmParams.corpId = targetCorpId;}
|
|
406
406
|
if (loginResult.secondaryValidationResult) {
|
|
407
|
-
|
|
407
|
+
confirmParams.secondaryValidationResult = loginResult.secondaryValidationResult;
|
|
408
408
|
}
|
|
409
|
-
if (redirectUri) {
|
|
409
|
+
if (redirectUri) {confirmParams.redirect_uri = redirectUri;}
|
|
410
410
|
|
|
411
|
-
const response = await postConfirmAuth(confirmUrl,
|
|
411
|
+
const response = await postConfirmAuth(confirmUrl, buildOAuthPostData(context.loginPageUrl, confirmParams), {
|
|
412
412
|
cookieHeader,
|
|
413
413
|
referer: context.loginPageUrl,
|
|
414
414
|
origin: context.origin,
|