Fix dynamic auth tail node propagation

This commit is contained in:
QLHazyCoder
2026-05-20 03:14:18 +08:00
parent 5d7f78617b
commit fbb66fb5a2
7 changed files with 153 additions and 9 deletions
+4 -1
View File
@@ -212,7 +212,10 @@
{
type: 'SUBMIT_ADD_EMAIL',
source: 'background',
payload: { email: resolvedEmail },
payload: {
email: resolvedEmail,
nodeId: state?.nodeId || activeFetchLoginCodeStepKey || 'fetch-login-code',
},
},
{
timeoutMs,
+1 -1
View File
@@ -307,7 +307,7 @@
'signup-page',
{
type: 'EXECUTE_NODE',
nodeId: 'oauth-login',
nodeId: state?.nodeId || 'oauth-login',
step: 7,
source: 'background',
payload: {
+3 -3
View File
@@ -94,15 +94,15 @@
}
const code = normalizeString(parsed.searchParams.get('code'));
const state = normalizeString(parsed.searchParams.get('state'));
if (!code || !state) {
const oauthState = normalizeString(parsed.searchParams.get('state'));
if (!code || !oauthState) {
throw new Error(`步骤 ${platformVerifyStep} 捕获到的 localhost OAuth 回调地址缺少 code 或 state,请重新执行步骤 ${confirmOauthStep}`);
}
return {
url: parsed.toString(),
code,
state,
state: oauthState,
};
}