diff --git a/auth/lib/models/code.dart b/auth/lib/models/code.dart index 2ee668c63..362df74e3 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 3ed6d6f3e..81c2d2dca 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, );