Authenticator-Extension / Authenticator

Authenticator generates 2-Step Verification codes in your browser.
https://authenticator.cc
MIT License
3.42k stars 798 forks source link

Importing JSON from AndOTP - Please change the "label" key to "account" #1304

Open Xawiu opened 2 months ago

Xawiu commented 2 months ago

Describe the issue

When exporting data to JSON format in the AndOTP app, the data is saved as follows:


[
    {
        "secret": "XXXXXXXXXXXXXXXXX111111",
        "issuer": "Facebook",
        "label": "Facebook:xxxxx",
        "digits": 6,
        "type": "TOTP",
        "algorithm": "SHA1",
        "thumbnail": "Facebook",
        "last_used": 1716724437426,
        "used_frequency": 16,
        "period": 30,
        "tags": [
            "Facebook"
        ]
    },
    {
        "secret": "XXXXXXXXXX222222",
        "issuer": "Google",
        "label": "Gmail:XXXXXX111@gmail.com",
        "digits": 6,
        "type": "TOTP",
        "algorithm": "SHA1",
        "thumbnail": "Google",
        "last_used": 1612111168403,
        "used_frequency": 2,
        "period": 30,
        "tags": [
            "Gmail"
        ]
    } ......... etc

Unfortunately, when importing data into the Authenticator, the "label" key is not considered. It would be enough if, during the import, the "label" key was changed to the "account" key - then the imported data would be complete.

Without this change, filtering for individual websites doesn't work properly, especially when you have more than one account for the same service.

I usually solve this by manually replacing the keys in a text editor before importing, but it would be much easier and more convenient if the replacement happened automatically.

Browser

Firefox

Browser Version

130

Extension Version

8.0.0

Sneezry commented 2 months ago

We don't support AndOTP export format. Please request AndOTP to support standard backup format: https://authenticator.cc/docs/en/otp-backup-developer