jamie-mh / AuthenticatorPro

📱 Two-Factor Authentication (2FA) client for Android + Wear OS
https://authenticatorpro.jmh.me
GNU General Public License v3.0
2.96k stars 199 forks source link

Cannot import from 2fas #901

Closed milindgoel15 closed 1 year ago

milindgoel15 commented 1 year ago

Describe the bug When importing the 2fas backup, it fails to import some apps and throws error.

The item reddit failed to import due to the following error: Algorithm not supported

It happens with reddit, instagram, google, GitHub, twitter, mega, discord

To Reproduce Steps to reproduce the behavior:

  1. Add a token on 2fas for any of the app mentioned
  2. Export backup
  3. Import in authenticator pro
  4. See error

Expected behavior All imports are done without issue

App Version 1.21.0

Additional context N/a

jamie-mh commented 1 year ago

Hi @milindgoel15 ,

Thanks for reporting this. It seems that an algorithm is not always specified. In that case, it should default to SHA1. Fixed in 45c4449ad4b023fb878123b111e4b15e96eb8d90.