To add two-factor authentication, ask for a second proof after the password: a code from an authenticator app, a passkey, or a text message as a fallback. With a managed identity service, the core build typically takes 1 to 3 weeks and costs about £3,000 to £12,000 (market estimate), and recovery flows cause most support tickets.
We built MoBank, the UK’s first mobile banking app, and security has shaped our mobile work ever since, across 19 years of projects since 2007. This guide covers which second factors to offer, whether to build or buy, how to design enrolment and sign-in, how to handle lost phones, where the law requires strong authentication, what it costs and how to roll it out without driving users away. It is part of our mobile app development guidance. Cost ranges are market estimates, not quotes. Where law and standards are mentioned, they are general information, not legal advice, and at the time of writing the details below are correct to our knowledge; check the official source for your case.
Key facts
- Two-factor authentication (2FA) combines two different kinds of proof: something you know (a password), something you have (a phone or key) or something you are (a fingerprint or face).
- Authenticator apps and passkeys are stronger than SMS codes, because text messages can be intercepted or redirected through SIM swapping.
- Most teams should buy the heavy lifting from an identity provider rather than write cryptography themselves.
- Account recovery is the hardest part: a weak recovery route undoes the protection 2FA gives you.
- Regulated apps, such as payments, may be legally required to use strong authentication, not just offer it.
- For a typical app, a managed 2FA build adds roughly 3 to 8% to the cost of a first release.
- A push approval that users tap without reading is weaker than it looks, so add number matching or context where you can.
What is two-factor authentication and why add it?
Passwords alone fail because people reuse them and criminals buy leaked lists. A second factor means a stolen password is not enough to open the account. For a founder, the case is practical: fewer account takeovers, fewer refund and support disputes, and a lower chance of a reportable data breach.
2FA is also a trust signal for business buyers, who often ask about it in security questionnaires. If your app holds money, health data or personal records, it is close to a baseline expectation. If your app is low risk, you can make 2FA optional and still gain the benefit for users who want it. The UK’s National Cyber Security Centre recommends turning it on wherever it is offered (NCSC).
What do the terms mean?
The vocabulary is a source of confusion, so it helps to fix it early.
| Term | Meaning | Note |
|---|---|---|
| Two-factor authentication (2FA) | Exactly two kinds of proof | The common consumer term |
| Multi-factor authentication (MFA) | Two or more kinds of proof | The common enterprise term |
| Second step | Any extra check after the password | May or may not be a true second factor |
| One-time password (OTP) | A code valid for a short time or one use | Sent by SMS or generated by an app |
| TOTP | Time-based one-time password | What authenticator apps generate |
| Passkey | A credential stored on a device or in a password manager, used with a biometric or PIN | Built on FIDO and WebAuthn |
| Step-up authentication | An extra check for a risky action | For example, a large transfer |
| Strong customer authentication (SCA) | Payment rules requiring two independent factors | Applies to regulated payments |
Note that a second password, or a security question, is not a second factor. Both are things you know. A second factor must come from a different category, which is why a text to a phone or a code from an app counts and a “mother’s maiden name” does not. Our explainer on multi-factor authentication and passkeys give shorter definitions.
What threats does 2FA stop, and which does it not?
It helps to be honest about what a second factor does.
| Threat | Does 2FA help? | Notes |
|---|---|---|
| Reused or leaked password | Yes, strongly | The main reason to add it |
| Password guessing and credential stuffing | Yes | Combine with rate limits |
| Phishing that steals a password only | Yes | The attacker still lacks the second factor |
| Phishing that relays a code in real time | Partly | Codes can be relayed; passkeys resist this |
| SIM swap and number takeover | Not for SMS | Use an app or passkey instead |
| Malware on the user’s device | Limited | The attacker may see codes or approve prompts |
| Stolen session token | No | Protect sessions separately |
| Insider misuse | Partly | Use role-based access and audit logs |
The takeaway is that 2FA is a strong layer but not a complete defence. Pair it with sensible session handling, device checks for risky actions and logging.

Which second factors should your app offer?
| Method | Strength | User effort | Main weakness |
|---|---|---|---|
| Passkey or security key | Very high | Low (biometric tap) | Needs recovery planning; older devices |
| Authenticator app (TOTP) | High | Medium (open app, type 6 digits) | Lost phone locks users out |
| Push approval in your app | High | Low | Users approve prompts without looking |
| SMS code | Moderate | Low | SIM swap and interception risk |
| Email code | Moderate | Medium | Only as safe as the email account |
| Recovery codes | Backup only | High | Users lose or ignore them |
A sensible default for most apps is to offer an authenticator app and passkeys, with SMS as a fallback for users who cannot use either. Standards bodies treat SMS as a “restricted” method, which means it still counts but is discouraged for higher-risk accounts (NIST digital identity guidelines, SP 800-63B). The National Institute of Standards and Technology publishes these guidelines. Passkeys, built on the FIDO standard, are the direction of travel; see Passkeys: what they are and how to adopt them in your app for the wider picture, and the FIDO Alliance for the standard itself.
Biometrics such as Face ID are usually a convenient way to unlock a stored credential on the device rather than a separate second factor on a server. Our guide to biometric login explains the difference.
How do the methods behave in real life?
Authenticator apps. The user scans a QR code once, then types a six-digit code that changes every 30 seconds. The code comes from a shared secret and the current time, defined in an open standard (RFC 6238), so it works offline. The weak points are lost phones and users who switch devices without moving the secret. Choose a well-known library, store each secret encrypted on your server and accept codes from one step before and after the current one to allow for clock drift.
Passkeys and security keys. The device holds a private key, and your server holds the matching public key. Signing in proves possession without sending a secret, and the credential is tied to your domain, which makes phishing much harder. Passkeys can sync across a user’s devices through the platform’s password manager, which helps with lost phones but moves some trust to the platform account. Check the current platform support on Apple’s developer site and Android’s developer site, and follow the W3C WebAuthn standard if you build for the web.
Push approval. Your app shows “Was this you?” on a trusted device. It is low friction, but attackers exploit it by sending repeated prompts until a tired user taps “approve”. Reduce the risk by showing context such as location, device and time, and by asking the user to type a short number shown on the sign-in screen, so a blind tap is not enough.
SMS codes. Everyone has a phone, and nothing needs installing, which is why SMS remains popular. The costs are real: message fees, delivery delays in some countries, fraud such as artificially inflated traffic, and the SIM swap risk. Keep it as a fallback and add protections: rate limits per number, country allow lists and alerts for unusual volume.
Email codes. Reasonable for low-risk apps, and often the simplest to add. The strength is only as good as the user’s email account, so it is weak where the email password is the same as the app password.
Hardware security keys. Excellent for staff, administrators and high-value accounts. They cost money to buy and issue, so they suit business apps better than consumer ones.
Which methods fit which type of app?
| App type | Suggested approach |
|---|---|
| Low-risk consumer app (content, games) | Optional 2FA with authenticator app and email fallback |
| Marketplace or booking app | Optional for buyers, required for sellers who receive payouts |
| Subscription or fitness app with stored cards | Offer authenticator app and passkeys, prompt after first purchase |
| Banking, investing or payments | Required strong authentication, passkeys or app-based approval, step-up for payments |
| Health or records app | Required for staff, strongly encouraged for patients, with careful recovery |
| Business or admin tools | Required for all staff, with hardware keys for administrators |
| Children’s apps | Parent-controlled accounts; avoid collecting extra personal data |
Should you build 2FA yourself or buy it?
Buy, in almost every case. Writing your own one-time code logic, secret storage, rate limiting and device binding is slow and easy to get subtly wrong.
| Option | Typical cost | Best for | Trade-off |
|---|---|---|---|
| Managed identity service (for example Auth0, Okta, AWS Cognito, Firebase Authentication, Microsoft Entra External ID) | Often free to start, then priced per active user | Most consumer and business apps | Ongoing usage fees; some lock-in |
| SMS and voice provider (for example Twilio Verify, Vonage) | A few pence or cents per message | SMS fallback and phone verification | Cost rises with users and with fraud |
| Open source library for TOTP in your own backend | Developer time only | Teams with strong security staff | You own the security and upkeep |
| Fully custom | Highest | Rare cases with unusual rules | Hard to audit and maintain |
Check each vendor’s current pricing and data location before deciding, because plans change often. You can start from the vendor sites, such as Auth0, Firebase and Twilio. For a deeper comparison, see Auth0 vs Firebase Auth, Clerk vs Auth0 and Twilio vs Vonage.
If you already built login following How to add user login and sign-up to your app, the identity service you chose there probably supports 2FA already, which makes this a configuration and design task rather than a rebuild. The same applies if you used social login: the provider may handle the second factor for you, but you should decide whether to require your own for sensitive actions. The costs of the basic building blocks are laid out in What does two-factor authentication cost to build in an app? and App feature costs: login, payments, chat and maps.
How do you choose a provider?
Ask these questions of each shortlisted service.
- Which methods are included? Authenticator app, passkeys, push, SMS, email and recovery codes.
- How is it priced? Per monthly active user, per authentication, or per message, and what happens at your expected scale.
- Where is data stored? For EU and UK users, check regions, processor terms and transfer mechanisms. See UK and EU data transfers for app projects.
- Can you export users? If you leave, can you take accounts, and can you take second-factor enrolments? Often you cannot move authenticator secrets, which means users must enrol again. Plan for it.
- How good are the mobile SDKs? Native sign-in screens feel better than web views.
- What admin tools exist? Support staff need to reset a second factor safely.
- What are the limits and uptime? A sign-in outage is a total outage for your app.
- Is there an audit trail? You will want to see enrolments, resets and failures. See how to add audit logs to your app.
When might you build it yourself?
A custom approach makes sense when you have unusual rules, such as a regulator that requires a specific device-binding method, an on-premises requirement, or an existing in-house identity system with years of investment. Even then, use well-reviewed open source libraries for the cryptography and one-time code logic, and have an independent test. Never write your own algorithm. The OWASP project publishes a mobile application security body of work, including authentication requirements, that your team should read first.
How should users enrol and sign in?
Good 2FA design is mostly about timing and wording.
- Offer enrolment after the first success. Ask once a user has seen value, for example after their first booking or deposit, not at the sign-up form.
- Use clear steps. Show a QR code for authenticator apps, a manual key for people on the same phone, and a confirmation step that asks for the first code before switching 2FA on.
- Show recovery codes at once. Generate 8 to 10 single-use codes, let the user copy or save them, and make them confirm they have done so.
- Remember trusted devices. Skip the second step on a recognised device for 30 days, but always ask again for sensitive actions such as changing the password, email or payout details.
- Add step-up checks. Require a fresh second factor for high-risk moments such as large transfers, new payees or exporting data.
- Limit attempts. Lock or slow down after a handful of wrong codes, and alert the user by email when 2FA is turned off.
Not sure which authentication setup fits your app? We scope identity, recovery and compliance together so nothing is bolted on late. Book a 30-minute call with a co-founder.
How should the screens read?
Wording matters because people sign in on small screens, often in a hurry. Short, concrete labels reduce support contacts.
| Moment | Weak wording | Better wording |
|---|---|---|
| Prompt to enrol | “Enable MFA for enhanced security” | “Protect your account with a code from your phone” |
| Code entry | “Enter OTP” | “Enter the 6-digit code from your authenticator app” |
| Wrong code | “Authentication failed” | “That code did not work. Codes change every 30 seconds, so try the latest one” |
| Recovery codes | “Backup keys generated” | “Save these 10 codes. Each works once if you lose your phone” |
| Turning 2FA off | “Disable” | “Turn off 2FA? Your account will only be protected by your password” |
| Lockout | “Too many attempts” | “Too many tries. You can try again in 15 minutes, or reset by email” |
Build for accessibility from the start. Use proper input types and autofill hints so phones can offer the code from a message, allow paste into the code field, support screen readers, and do not rely on colour alone to show an error. See how to add accessibility features to your app and App accessibility: the European Accessibility Act and UK guidance. A code field that blocks paste or autofill is a common usability fault.
When should you ask for the second factor?
There are four sensible moments, and most apps combine them.
| Trigger | Example | Why |
|---|---|---|
| Every sign-in | Banking app | Highest assurance |
| New device or location | Shopping app | Balances friction and risk |
| High-risk action | Changing payout details, large payment | Targets what attackers want |
| After a risk signal | Many failed attempts, unusual country | Adaptive and cheaper |
Most consumer apps do best with the second and third: ask on a new device, and ask again for sensitive actions. That keeps everyday use smooth. Risk rules need monitoring, so start with simple, explainable ones, and avoid black-box scoring you cannot defend to a customer.
How long should sessions last?
Two-factor authentication protects the sign-in, and the session that follows is what an attacker steals if they can. Use short-lived access tokens with refresh tokens kept in secure device storage, revoke sessions when a password or second factor changes, and show users a list of active devices with a “sign out everywhere” button. For high-risk apps, expire sessions after a period of inactivity and ask again before sensitive actions, even within a valid session.
What happens when a user loses their phone?
This is the section most teams skip, and the one that decides whether 2FA is loved or hated. Every protected account needs a recovery route that is easy for the owner and hard for an attacker.
- Recovery codes are the cheapest route. They work only if users stored them.
- A second enrolled method, such as a passkey plus an authenticator app, removes most lockouts. Prompt users to add one.
- Identity checks by support are the last resort. For low-value accounts, email confirmation plus a waiting period of 24 to 72 hours is common. For financial apps, expect document checks.
- Do not allow SMS or email to bypass everything. If a text can reset the second factor, an attacker with a swapped SIM has both factors.
Plan the support cost too. A realistic scenario: a consumer app with 20,000 monthly users turns on 2FA for everyone. If 1% of users lose access in a month, that is 200 recovery requests. At a few minutes each, that is manageable, but at 10 minutes each with identity checks it is a part-time role. Self-service recovery and a prompt to add a backup method cut that number sharply.
What does a safe recovery ladder look like?
Offer routes in order from easiest and safest to hardest.
| Step | Route | Security note |
|---|---|---|
| 1 | Use another enrolled method (second device, passkey, authenticator) | Strongest and quickest |
| 2 | Use a saved recovery code | Single use, store hashed on the server |
| 3 | Confirm by email and wait 24 to 72 hours, with alerts to old contact details | Slows an attacker and tells the owner |
| 4 | Identity check by support, such as document and selfie match | Needed for financial accounts; keep records |
| 5 | Account reset with loss of some data | Last resort where data can be rebuilt |
Whatever you build, write the policy first and train support staff to follow it. The most common real-world attack on strong authentication is not breaking the code, it is persuading a support agent to remove it. Agents need a script, a checklist and permission to say no. Log every reset and send an alert to the user’s other contact details.
What should support staff be able to do?
Give support a limited tool: view enrolment status, trigger a reset after the checklist is complete and add a note. Do not give them the ability to read secrets, view recovery codes or turn off 2FA with a single click. Require a second staff member to approve resets on high-value accounts. Protect the support tool with strong authentication of its own, because it is an attractive target. See how to add role-based access to your app and how to add an admin dashboard to your app.
When is two-factor authentication a legal requirement?
It depends on the sector and region. General information, not legal advice; check the current rules for your case.
- Payments and banking in the UK and EU. Strong customer authentication under PSD2 and the UK equivalent usually means two of three factors for online payments and account access, with exemptions. See PSD2 Strong Customer Authentication and our UK version, Strong Customer Authentication in UK apps. The Financial Conduct Authority and the European Banking Authority publish the official guidance.
- Data protection. The UK GDPR and EU GDPR require “appropriate” security, and regulators often cite missing 2FA when they review breaches. The ICO publishes guidance on security measures.
- Health and other US sectors. HIPAA’s Security Rule expects access controls but does not name 2FA for every case. Many organisations require it anyway through their security policies. See HIPAA Security Rule technical safeguards.
- Card data. If you handle card numbers directly, the card industry’s security standard has authentication requirements for administrators. See PCI DSS for apps that take payments.
- Public sector and enterprise customers. Procurement documents often require MFA for staff and admins, and security certifications such as ISO 27001 and SOC 2 expect it. See SOC 2 for startups.
If your app falls under none of these, the choice is yours, but a security-minded customer may require it in a contract.
Does SCA apply to your payments?
Strong customer authentication applies to payment service providers, so if you use a regulated provider such as a card processor, much of it is handled in their flow, for example through 3-D Secure. Your app still needs to present those steps well, and your own account sign-in may carry separate duties. If you hold funds or act as a payment institution, the rules are stricter. Take advice from a specialist and read How much does a fintech app cost in the UK? and Building a banking app in the UK: FCA, Open Banking and security for the surrounding rules.
What about biometrics and privacy?
If you store or process biometric templates on your own servers, you take on heavy data protection duties, and some jurisdictions have specific laws. See BIPA and biometric data in apps. In most cases the safer design uses the phone’s own biometric check to unlock a key, without your server ever seeing the fingerprint or face data.
What does it cost to add 2FA?
These are market estimates for adding 2FA to an app that already has login, assuming a managed identity service.
| Scope | Typical effort | Approximate cost |
|---|---|---|
| Authenticator app plus recovery codes | 1 to 2 weeks | £3,000 to £6,000 ($3,800 to $7,600; €3,500 to €7,000) |
| Add passkeys and trusted devices | 2 to 3 weeks | £6,000 to £12,000 ($7,600 to $15,200; €7,000 to €14,000) |
| Step-up checks, risk rules and admin tools | 3 to 6 weeks | £12,000 to £25,000 ($15,200 to $31,800; €14,000 to €29,000) |
Running costs come on top: SMS messages, per-user identity fees and support time. A worked example: an SMS fallback used by 5,000 people who sign in on average 4 times a month, at an assumed 4p per message (an order of magnitude at the time of writing; check your provider’s pricing page), would cost around £800 a month if every sign-in sent a text. Trusted-device memory and authenticator apps cut that sharply, which is why SMS should be the fallback and not the default.
Rounded Labs works to a fixed price agreed before development starts, and projects typically range from £30,000 to £250,000+, so 2FA is normally scoped as part of a wider build; see our pricing page. If you are unsure how secure your current app is, a Tech Architecture Audit at £7,500 reviews authentication among other areas.
Where does the effort go?
| Task | Share of the 2FA work | Notes |
|---|---|---|
| Design of enrolment, sign-in and recovery screens | 15 to 20% | The part users see |
| Identity service configuration and integration | 20 to 25% | Policies, templates, SDK |
| Recovery and support tooling | 15 to 20% | Reset flows, admin tools, scripts |
| Step-up logic and trusted devices | 10 to 15% | Rules for risky actions |
| Testing, including unhappy paths | 15 to 20% | Devices, clock drift, reinstalls |
| Security review and documentation | 5 to 10% | Penetration test input, policies |
| Rollout and communication | 5 to 10% | Messages, staged release |
A second look at the table shows why a “two-week” estimate can be misleading. The code to check a six-digit number is small. The surrounding design, recovery and testing are not. Be wary of any quote that lists only the integration. For a wider view on pricing quotes, see App development quotes compared and Fixed price vs time and materials.
What is the cost of not adding it?
Account takeovers cost money in refunds, support time, reputation and, in some cases, regulatory attention. A single incident handled badly can cost more than the full 2FA build. A fair comparison counts your average account value, the share of accounts likely to be targeted, and the cost of handling an incident. Our guide on how to handle a data breach in an app shows the work involved when it goes wrong.

Should you make 2FA mandatory or optional?
The right answer depends on risk and on your users. The table helps you decide.
| User group | Recommendation | Reason |
|---|---|---|
| Staff and administrators | Mandatory | High privilege, high target value |
| Sellers or providers who receive money | Mandatory | Payout fraud is common |
| Customers with stored payment details | Strongly encouraged, mandatory for risky actions | Protects balance and trust |
| Ordinary consumers in low-risk apps | Optional with nudges | Avoids losing sign-ups |
| Regulated users (banking, some health) | Mandatory by rule or policy | Legal or contractual duty |
How do you nudge people without annoying them?
Optional features need good prompts. Three habits work well.
- Prompt at a moment of value, such as after a first payment or when someone adds a card.
- Offer an incentive that is real, such as protecting stored cards or saved data. Avoid fear messages.
- Show progress and status, for example a small “account security” card with steps completed. Do not nag daily.
Apps that nudge well see a significant share of users enrol, but we advise measuring your own numbers instead of relying on others’ claims. Track enrolment rate, drop-off by step, successful sign-ins with 2FA, recovery requests and support contacts.
How do you test and launch 2FA safely?
Test the unhappy paths, not just the success case. Check expired codes, clock drift on authenticator apps, a new phone, a reinstalled app and a user who changes number. Run the mobile checks in Mobile app security checklist: OWASP MASVS in plain English, and confirm that codes never appear in logs or analytics. The OWASP Mobile Application Security project is the standard reference for authentication testing. An independent test is worth the cost; see what penetration testing for apps is.
Roll out in stages: internal staff first, then a small group of users, then everyone. For existing users, announce the change by email and in app a couple of weeks ahead. If you send codes by text or email, follow How to add email and SMS notifications to your app for delivery, sender names and cost control. For the release mechanics, How to migrate users to a new app version explains staged rollouts and version checks, which matter if some users run old builds without the new sign-in screens.
Which tests should be on your checklist?
| Test | What to check |
|---|---|
| Correct code | Sign-in completes and a session starts |
| Expired or reused code | Rejected with a clear message |
| Clock drift | Codes from a phone a minute off still work within tolerance |
| Rate limiting | Repeated wrong codes slow or lock the account, and alert the user |
| Lost phone | Recovery routes work and cannot be abused |
| New device | Step-up and trusted device rules apply |
| Reinstall | Passkeys and tokens behave as designed |
| Number change | SMS fallback can be updated safely |
| Turning 2FA off | Requires a fresh check and sends an alert |
| Accessibility | Screen reader, large text, paste and autofill work |
| Logs and analytics | No codes, secrets or tokens recorded |
| Offline and poor signal | Clear messages, no endless spinner |
What should you monitor after launch?
Watch sign-in success rate, 2FA failure rate, recovery requests, SMS delivery rates and cost, and reports of suspicious activity. A sudden jump in SMS volume may signal fraud rather than growth. Set alerts for it and for spikes in failed attempts. Our guides to setting up app analytics events and how to fix a high crash rate apply here, since a crash on the code screen locks users out.
How do you protect the second factor itself?
Attackers target the weakest link, so the protections around the second factor matter as much as the factor.
- Store authenticator secrets encrypted, with the key held separately from the database, and never log them.
- Hash recovery codes as you would passwords, and show them only once.
- Make codes single use, so a code captured once cannot be replayed within its window.
- Bind trusted devices to a token held in secure storage on the device, and revoke it when the password changes.
- Alert on change. Email and notify the user whenever a method is added, removed or reset.
- Rate limit by account, device and network, not just by account, so one attacker cannot try many accounts quietly.
- Protect the enrolment step. Ask for the password or an existing factor before showing a new QR code, or an attacker with a stolen session could enrol their own device.
Treat enrolment as a high-risk action in its own right. A common real-world attack is not to defeat 2FA but to enrol it on someone else’s account first.
What mistakes cause lockouts and complaints?
| Mistake | What happens | Better approach |
|---|---|---|
| No recovery codes or backup method | Lost phone means lost account | Require a backup at enrolment |
| SMS as the only option | Users abroad or without signal cannot sign in | Offer an authenticator app and passkeys |
| Asking for 2FA at the sign-up form | Sign-up drop-off | Ask after first value |
| Weak support reset | Attackers talk their way in | Written policy, checklist and alerts |
| Codes valid for too long | Easier to relay or guess | Short expiry, single use |
| No rate limiting | Brute force | Slow down and lock after failures |
| Storing secrets in plain text | A database leak defeats 2FA | Encrypt secrets and hash recovery codes |
| Turning 2FA off without a check | Attacker removes protection | Require a fresh factor and send alerts |
| Ignoring older phones | Passkeys unavailable | Offer fallbacks that are still reasonably strong |
| No monitoring | Fraud found by accident | Dashboards and alerts |
What are the privacy points?
Phone numbers and device identifiers are personal data. Collect a number only if you will use SMS, explain why in plain language and do not reuse it for marketing without a separate lawful basis. Keep logs of authentication events as long as needed for security and no longer. Update your privacy notice when you add new methods, and apply the same care when you work with an SMS or identity supplier, who becomes your processor. See UK GDPR for mobile apps, How to write an app privacy policy and The UK Data (Use and Access) Act 2025 for the UK picture.
How does 2FA fit with the rest of your sign-in design?
Authentication is a set of decisions that need to work together. A good design answers these in order.
- How do users create an account? Email, phone, social login or enterprise single sign-on. See how to add social login to your app.
- What is the first factor? Password, passkey or email link.
- What is the second factor? One or more of the methods in the table above.
- How do you recognise a returning device? Trusted device rules and token storage.
- What needs a fresh check? Step-up actions.
- How do users recover access? The ladder above.
- How do you log and review? Audit trails, alerts and reports.
- How do you manage access for staff? Role-based permissions and stronger rules.
Treat authentication as a product feature with its own roadmap, not a one-off task. New devices, new standards and new fraud patterns will change the right answer over time, which is why we plan an annual review. For other features that depend on identity, such as payments and wallets, see how to add in-app payments to your app and how to add a digital wallet to your app.
What does a realistic project look like?
Imagine a UK subscription app with 40,000 active users, a password login and stored cards. The founder wants 2FA before a business partnership that requires it. A sensible plan looks like this.
| Week | Work | Output |
|---|---|---|
| 1 | Review current login, decide methods, write the recovery policy | One-page design and policy |
| 2 | Configure the identity service, add authenticator app enrolment and recovery codes | Working staging build |
| 3 | Add trusted devices, step-up for card changes, alerts | Rules tested |
| 4 | Build admin reset tool, test unhappy paths, security review | Test report |
| 5 | Staged rollout: staff, 5% of users, then everyone | Metrics dashboard |
| 6 | Review support volume and enrolment rate, adjust prompts | Short review note |
At market rates this lands within the middle rows of the cost table. The effort is mostly design and testing. The founder should also set aside a small budget for SMS messages and for support time in the first month, and expect a few dozen recovery cases per 10,000 users in the first weeks. These numbers are illustrative.
What should you tell enterprise buyers?
Business customers send security questionnaires, and 2FA questions appear on almost all of them. Prepare a short, accurate answer in advance: which methods you support, whether staff and administrators are required to use them, how recovery works, how resets are approved and logged, and how you test. Do not overstate. If 2FA is optional for customers, say so, and explain the controls around it. If a customer wants single sign-on through their own identity provider, plan for it early, because it changes the sign-in design and the cost. Our guide to SOC 2 for startups shows how these answers feed a wider assurance programme, and How to prepare for a security audit covers the paperwork.
What should you do next?
- Decide who needs 2FA first: staff, sellers or payers, and then everyone else.
- Choose methods: an authenticator app and passkeys, with SMS or email as a limited fallback.
- Choose an identity provider and check price, region and export options.
- Write the recovery policy before building screens.
- Design enrolment after first value, with recovery codes and a second method prompt.
- Add step-up checks for risky actions and alerts for changes.
- Test the unhappy paths and commission an independent security test.
- Roll out in stages and watch enrolment, failures and support volume.
If you would like help scoping this alongside the rest of your app, book a call with a co-founder. We will say honestly whether you need a small configuration job or a wider rebuild of login.
Frequently asked questions
Is SMS two-factor authentication good enough?
It is better than a password alone, but weaker than an authenticator app or passkey because of SIM swapping and interception. For low-risk apps it is a reasonable fallback. For money or sensitive data, offer stronger options and nudge users towards them.
Should 2FA be mandatory or optional?
Make it mandatory for staff, admins and regulated actions such as payments. For ordinary consumer accounts, optional with a clear prompt works for many apps, though high-risk apps should require it.
Can I use Face ID or fingerprint as the second factor?
Usually it unlocks a key stored on the device, which acts as a strong “something you have plus something you are” check. It works well when paired with a passkey. It is not the same as a server-side second factor unless it is set up that way.
How long does it take to add 2FA to an existing app?
With a managed identity service, a basic version takes 1 to 3 weeks. Recovery flows, passkeys and admin tools add more. Timelines depend on how your login is built today.
Do users really hate 2FA?
They dislike friction and lockouts, not the idea. Asking at the right moment, remembering trusted devices and offering simple recovery keeps complaints low.
What happens to existing users when I add 2FA?
Existing users keep their password sign-in until they enrol, unless you choose to require it. Announce the change a couple of weeks ahead, prompt at a sensible moment and keep the old route working during the transition. Old app versions may lack the new screens, so use a minimum version check if you plan to require it.
Can I move users between identity providers later?
Passwords can sometimes be migrated if the provider allows hash export, but authenticator secrets and passkeys usually cannot move, so users would need to enrol again. Check export options before you choose a provider and plan the communication if you ever switch.
Official sources and further reading
Talk it through with one of our co-founders. 30 minutes, no pressure.





