3 ms·
Auto2FA is a menu bar app for macOS Ventura to help autofill SMS 2FA codes. When you receive a 2FA code, it will copy it to your clipboard automatically and sen
by jtbergman 4y ago
Auto2FA is a menu bar app for macOS Ventura to help autofill SMS 2FA codes. When you receive a 2FA code, it will copy it to your clipboard automatically and send a local notification to notify you the code is ready to paste. I’ve always used Safari which can autofill SMS 2FA codes automatically, but lately I’ve been using Chromium browsers for dev tools, and this is my most missed feature.
The app is written entirely in Swift and has a binary size of ~550KB. I avoided using any third-party library because the app can access your local iMessage SQLite DB. The app uses modern Swift features including SwiftUI and async/await. The app uses a custom, redux-like architecture (although the reducer is not currently side-effect free). The app could be written for older macOS versions, but that would have prevented using some of the newer SwiftUI features for menu bar apps.
The DEVELOPERS.md file includes some technical details on how to implement this from scratch, plus some links to related projects and useful blog posts. All in, there are just ~800 lines of code.
- billylo 4y agothanks for sharing... works like a charm.