fix: auth cancel

This commit is contained in:
lollipopkit
2024-04-19 00:13:33 +08:00
parent 1c0ea9e7bb
commit 536b7f3b2c

View File

@@ -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;
}
}
}