fix: preserve phone identity on oauth-login completion

- Merge latest origin/dev into PR #245 for the current review baseline.\n- Sync Step 7 completion identity before oauth-login step-key handling returns.\n- Cover the real oauth-login stepKey route in the message-router regression test.
This commit is contained in:
QLHazyCoder
2026-05-15 03:10:34 +08:00
66 changed files with 6953 additions and 542 deletions
@@ -251,6 +251,11 @@ test('message router persists phone signup identity from step 7 completion paylo
};
const { router, events } = createRouter({
state: { stepStatuses: { 7: 'completed', 8: 'pending' } },
getStepDefinitionForState: (step) => (
step === 7
? { key: 'oauth-login' }
: (step === 8 ? { key: 'fetch-login-code' } : null)
),
});
await router.handleStepData(7, {