A fintech app adding phone one-time-code login has another migration boundary to protect: account deletion. Moving off a managed authentication provider should not change the order in which access disappears. Otherwise, a successful user deletion can hide unfinished session or credential cleanup.
TL;DR: Revoke every session for the user, delete the user record, then remove any key issued to them. Keep timestamped audit evidence for those steps. In Node.js, put that sequence behind an application-owned contract so changing the provider adapter leaves the calling code intact.
Keep the order visible.
Don't count partial cleanup as completion.
The useful before-and-after is small. Before: the deletion handler speaks a provider's dialect, and a dashboard counts deleted records. After: the handler invokes three ordered operations, while the audit trail distinguishes sessions revoked, record deleted, and credentials removed.β¦