---
"title": "69. Designing a Better 2FA Mobile App"
"description": "These days, passwords aren't enough to keep you secure. More and more websites are relying on two-factor authentication, coupling traditional login forms with an additional component, such as a security code texted to your phone. There's quite a lot of innovation occurring in the space between security and user experience. Evan Grim is a software architect at Salesforce, and he's in charge of their Salesforce Authenticator mobile app. He's joined by Chris Castle to talk about how the app works and what they're doing to make security practices even easier."
"date": "2020-03-19"
"authors":
  -
    "name": "Chris Castle"
"url": "https://wp-www-staging.heroku.com/codeish-podcasts/69-designing-a-better-2fa-mobile-app/"
---

# 69\. Designing a Better 2FA Mobile App

Chris Castle, a developer advocate at Salesforce, is joined by Evan Grim, a software architect at Salesforce responsible for the Salesforce Authenticator mobile app. Salesforce Authenticator is a component of a two-factor authentication flow. After a user signs in to their Salesforce organization, the mobile app will generate a secure code which is used to provide additional verification. This guarantees that even if a user’s password is compromised, a hacker won’t be able to login unless they have access to your phone, too. Experiencing a flow like this has become commonplace, with banks and other websites taking a security-first approach to their user experience. What’s starting to change is the way these 2FA apps work. For example, Evan has built a flow where the Salesforce Authenticator uses geolocation to identify where you are. If you log in to a website from the same location enough times to establish a pattern, the app can send the security code automatically, without you needing to type anything in. Evan is very interested in exploring further trends where safety is not compromised for the sake of usability. For the remainder of the episode, Chris and Evan discuss the fundamentals of the technologies and systems used to build the app. Evan believes that keeping things simple is paramount to any software project. For many years, the Salesforce Authenticator backend was situated in one region, and it served them well. Now that the app has become more popular, they are considering the complexities of multi-region support, including sharding their Postgres database. Their trade-off for focusing on adoption over sophistication has paid off, as it often does. Now that their idea has been validated, they can plan to rearchitect their app to support increased volume from a growing security-conscious user base.

## Links from this episode

- [Wikpedia’s article](https://en.wikipedia.org/wiki/Multi-factor_authentication) on Multi-factor authentication
- [Salesforce Authenticator](https://www.salesforce.com/solutions/mobile/app-suite/security/) is an intelligent two-factor authentication app
- [Let’s Encrypt](https://letsencrypt.org/) provides free and automated SSL certificates for any website
- [Securing the Web with Let’s Encrypt](https://wp-www-staging.heroku.com/codeish-podcasts/19-securing-the-web-with-lets-encrypt/) podcast
- [Heroku Postgres](https://wp-www-staging.heroku.com/postgres/)