if needed, read/interpret the qr codes (reading the qr code should be doable with expo alone)
generate the 2FA tokens
This is how I imagine 2FA in MemPa (exact clone of Google Authenticator, with our nicer UI)
In the Settings, there's a toggle "Enable Two-factor Authentication"
If you enable 2FA, in the home you have a new virtual group Two-factor Authentication
The group is similar to the others, you enter and see a list of sites, and you have the option to add new sites
Each site shows the 2FA token w/ an expiration animation
Tapping "+" in the menu bar adds a new site, with the QR code scanning
Advanced features:
say you have github.com password and also added github.com in the 2FA. When you tap to copy the password in the home screen, we automatically show you the 2FA token below. The idea is that you'll prob have to type it very soon
similarly, when you leave mempa, we could wait 30s and send you a push notification for 2FA. The idea is that you copy the password, you switch to the browser to paste it, then you should go back to mempa for the 2FA code. Instead, you get a push notification, so you can quickly switch to mempa (and you also have the back link to go back again to the browser right after).
We should investigate which library to use for:
This is how I imagine 2FA in MemPa (exact clone of Google Authenticator, with our nicer UI)
Advanced features: