Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

chore(auth): rename toExportFormat

Prateek Sunal3c793258a8a3
diff --git a/auth/lib/models/code.dart b/auth/lib/models/code.dart
index 2ee668c631..362df74e3a 100644
--- a/auth/lib/models/code.dart
+++ b/auth/lib/models/code.dart
@@ -159,7 +159,7 @@ class Code {
}
}
- String toExportFormat() {
+ String toOTPAuthUrlFormat() {
return jsonEncode(
Uri.parse(
"$rawData&codeDisplay="
diff --git a/auth/lib/store/code_store.dart b/auth/lib/store/code_store.dart
index 3ed6d6f3e5..81c2d2dca1 100644
--- a/auth/lib/store/code_store.dart
+++ b/auth/lib/store/code_store.dart
@@ -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,
);