Skip to content

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

Open
@Xawiu

Description

@Xawiu

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions