disableLocalAuthentication method

  1. @override
Future<void> disableLocalAuthentication({
  1. required UserId userId,
})
override

Writes to the repository the preference of the user with userId to not show lock screen This includes both pin and biometric authentication

Implementation

@override
Future<void> disableLocalAuthentication({required UserId userId}) async {
  sp.setBool(_keyBoolPinEnabled(userId).value, false);
  sp.remove(_keyStringPin(userId).value);
}