chore(auth): rename toExportFormat

This commit is contained in:
Prateek Sunal 2024-05-07 19:26:17 +05:30
parent 851c04f714
commit 3c793258a8
2 changed files with 3 additions and 3 deletions

View file

@ -159,7 +159,7 @@ class Code {
}
}
String toExportFormat() {
String toOTPAuthUrlFormat() {
return jsonEncode(
Uri.parse(
"$rawData&codeDisplay="

View file

@ -97,14 +97,14 @@ class CodeStore {
result = AddResult.updateCode;
await _authenticatorService.updateEntry(
code.generatedID!,
code.toExportFormat(),
code.toOTPAuthUrlFormat(),
shouldSync,
mode,
);
} else {
result = AddResult.newCode;
code.generatedID = await _authenticatorService.addEntry(
code.toExportFormat(),
code.toOTPAuthUrlFormat(),
shouldSync,
mode,
);