From 3c793258a8a39b9e6ffe02794d63ee9b459cd4ac Mon Sep 17 00:00:00 2001 From: Prateek Sunal Date: Tue, 7 May 2024 19:26:17 +0530 Subject: [PATCH] chore(auth): rename toExportFormat --- auth/lib/models/code.dart | 2 +- auth/lib/store/code_store.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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, );