Authenticator-Extension / Authenticator-Extension/Authenticator

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

Aperta
#1,304 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
as designed backup wontfix
Lingua principale
TypeScript
Stelle
4.7k
Fork
1.2k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Nell’issue non sono indicati file o test. Inizia individuando la gestione dell’importazione JSON e riproduci il problema con la struttura AndOTP mostrata; il lavoro è completato quando l’importazione riconosce il valore di label come account e il filtraggio distingue più account per un servizio.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
authentication
Tipo di issue
Bug
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.