Description
Current State:
- 5 routes use both
backTo AND forwardTo parameters
- These routes are part of the 2FA verification flow
- They require special handling with
FORWARD_TO_MAPPINGS configuration
Implementation:
- Configure
FORWARD_TO_MAPPINGS for the 2FA navigation chain
- Replace
forwardTo parameters with dynamic route mappings
- Follow chain:
VERIFY_ACCOUNT → ROOT → VERIFY → SUCCESS
- Test complete 2FA flow including forward navigation
Scope
Routes (5):
| Route Constant |
Path |
SETTINGS_CONTACT_METHOD_VERIFY_ACCOUNT |
settings/profile/contact-methods/verify |
SETTINGS_2FA_VERIFY_ACCOUNT |
settings/security/two-factor-auth/verify-account |
SETTINGS_2FA_ROOT |
settings/security/two-factor-auth |
SETTINGS_2FA_VERIFY |
settings/security/two-factor-auth/verify |
SETTINGS_2FA_SUCCESS |
settings/security/two-factor-auth/success |
Usages
SETTINGS_2FA_VERIFY_ACCOUNT:
src/pages/settings/Security/SecuritySettingsPage.tsx:142
src/pages/settings/Security/TwoFactorAuth/CopyCodesPage.tsx:49
src/pages/RequireTwoFactorAuthenticationPage.tsx:49
src/components/ConnectToXeroFlow/index.tsx:46
src/components/ConnectToXeroFlow/index.native.tsx:56
SETTINGS_2FA_ROOT:
src/pages/settings/Security/SecuritySettingsPage.tsx:145
src/libs/Navigation/Navigation.ts:54
src/pages/settings/Security/TwoFactorAuth/VerifyPage.tsx:95
src/pages/settings/Security/TwoFactorAuth/VerifyAccountPage.tsx:14
src/pages/settings/Security/TwoFactorAuth/SuccessPage.tsx:29
src/pages/RequireTwoFactorAuthenticationPage.tsx:46,49
src/pages/ReimbursementAccount/USD/ConnectBankAccount/components/Enable2FACard.tsx:35
src/pages/ReimbursementAccount/NonUSD/Finish/index.tsx:70
src/components/ConnectToXeroFlow/index.tsx:42
src/components/ConnectToXeroFlow/index.native.tsx:52
SETTINGS_2FA_VERIFY:
src/libs/Navigation/Navigation.ts:55
src/pages/settings/Security/TwoFactorAuth/CopyCodesPage.tsx:161
SETTINGS_2FA_SUCCESS:
src/libs/Navigation/Navigation.ts:56
src/pages/settings/Security/TwoFactorAuth/VerifyPage.tsx:54
Files to modify:
src/ROUTES.ts - Update route definitions
src/libs/Navigation/types.ts - Update screen params
- Components listed above
Migration Progress
Issue Owner
Current Issue Owner: @collectioneur
Description
Current State:
backToANDforwardToparametersFORWARD_TO_MAPPINGSconfigurationImplementation:
FORWARD_TO_MAPPINGSfor the 2FA navigation chainforwardToparameters with dynamic route mappingsVERIFY_ACCOUNT → ROOT → VERIFY → SUCCESSScope
Routes (5):
SETTINGS_CONTACT_METHOD_VERIFY_ACCOUNTsettings/profile/contact-methods/verifySETTINGS_2FA_VERIFY_ACCOUNTsettings/security/two-factor-auth/verify-accountSETTINGS_2FA_ROOTsettings/security/two-factor-authSETTINGS_2FA_VERIFYsettings/security/two-factor-auth/verifySETTINGS_2FA_SUCCESSsettings/security/two-factor-auth/successUsages
SETTINGS_2FA_VERIFY_ACCOUNT:src/pages/settings/Security/SecuritySettingsPage.tsx:142src/pages/settings/Security/TwoFactorAuth/CopyCodesPage.tsx:49src/pages/RequireTwoFactorAuthenticationPage.tsx:49src/components/ConnectToXeroFlow/index.tsx:46src/components/ConnectToXeroFlow/index.native.tsx:56SETTINGS_2FA_ROOT:src/pages/settings/Security/SecuritySettingsPage.tsx:145src/libs/Navigation/Navigation.ts:54src/pages/settings/Security/TwoFactorAuth/VerifyPage.tsx:95src/pages/settings/Security/TwoFactorAuth/VerifyAccountPage.tsx:14src/pages/settings/Security/TwoFactorAuth/SuccessPage.tsx:29src/pages/RequireTwoFactorAuthenticationPage.tsx:46,49src/pages/ReimbursementAccount/USD/ConnectBankAccount/components/Enable2FACard.tsx:35src/pages/ReimbursementAccount/NonUSD/Finish/index.tsx:70src/components/ConnectToXeroFlow/index.tsx:42src/components/ConnectToXeroFlow/index.native.tsx:52SETTINGS_2FA_VERIFY:src/libs/Navigation/Navigation.ts:55src/pages/settings/Security/TwoFactorAuth/CopyCodesPage.tsx:161SETTINGS_2FA_SUCCESS:src/libs/Navigation/Navigation.ts:56src/pages/settings/Security/TwoFactorAuth/VerifyPage.tsx:54Files to modify:
src/ROUTES.ts- Update route definitionssrc/libs/Navigation/types.ts- Update screen paramsMigration Progress
SETTINGS_CONTACT_METHOD_VERIFY_ACCOUNTSETTINGS_2FA_VERIFY_ACCOUNTSETTINGS_2FA_ROOTSETTINGS_2FA_VERIFYSETTINGS_2FA_SUCCESSIssue Owner
Current Issue Owner: @collectioneur