From 536b7f3b2c3e9cc2053653adb31e676738a0e2eb Mon Sep 17 00:00:00 2001 From: lollipopkit Date: Fri, 19 Apr 2024 00:13:33 +0800 Subject: [PATCH] fix: auth cancel --- lib/core/utils/platform/auth.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/utils/platform/auth.dart b/lib/core/utils/platform/auth.dart index 86bbfa65..1c032b8f 100644 --- a/lib/core/utils/platform/auth.dart +++ b/lib/core/utils/platform/auth.dart @@ -37,6 +37,7 @@ abstract final class BioAuth { if (!_isAuthing) { _isAuthing = true; final val = await goWithResult(); + _isAuthing = false; switch (val) { case AuthResult.success: break; @@ -48,7 +49,6 @@ abstract final class BioAuth { Stores.setting.useBioAuth.put(false); break; } - _isAuthing = false; } } }