0x0ece / yopa-native

0 stars 2 forks source link

Investigate two-factor auth #67

Open 0x0ece opened 6 years ago

0x0ece commented 6 years ago

We should investigate which library to use for:

  1. if needed, read/interpret the qr codes (reading the qr code should be doable with expo alone)
  2. generate the 2FA tokens

This is how I imagine 2FA in MemPa (exact clone of Google Authenticator, with our nicer UI)

Advanced features:

  1. 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
  2. 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).