Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Xawiu opened this issue Sep 11, 2024 · 1 comment
Open
Labels
as designed backup wontfix This will not be worked on

Comments

@Xawiu
Copy link

Xawiu commented Sep 11, 2024

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:[email protected]",
        "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

@Xawiu Xawiu added the bug Something isn't working label Sep 11, 2024
@Sneezry
Copy link
Member

Sneezry commented Sep 11, 2024

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

@Sneezry Sneezry added wontfix This will not be worked on backup as designed and removed bug Something isn't working labels Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
as designed backup wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants