Merge pull request #675 from cake-tech/CW-280-fix-pin-timeout

[CW-280] Fix PIN timeout issue
This commit is contained in:
Omar Hatem 2022-12-15 19:35:06 +02:00 committed by GitHub
commit 34f0e0912b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -91,14 +91,15 @@ class RootState extends State<Root> with WidgetsBindingObserver {
return;
}
setState(() {
_requestAuth = widget.authService.requireAuth();
});
if (!_isInactive && widget.authenticationStore.state == AuthenticationState.allowed) {
setState(() => _setInactive(true));
}
break;
case AppLifecycleState.resumed:
setState(() {
_requestAuth = widget.authService.requireAuth();
});
break;
default:
break;