chore(auth): rename toExportFormat
This commit is contained in:
@@ -159,7 +159,7 @@ class Code {
|
||||
}
|
||||
}
|
||||
|
||||
String toExportFormat() {
|
||||
String toOTPAuthUrlFormat() {
|
||||
return jsonEncode(
|
||||
Uri.parse(
|
||||
"$rawData&codeDisplay="
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user