enablePinAuthentication method

  1. @override
Future<void> enablePinAuthentication({
  1. required Pin pin,
  2. required UserId userId,
})
override

Writes to the repository the user's preference to have local authentication enabled with the given pin, for the user with userId

Implementation

@override
Future<void> enablePinAuthentication({
  required Pin pin,
  required UserId userId,
}) async {
  sp.setBool(_keyBoolPinEnabled(userId).value, true);
  sp.setString(_keyStringPin(userId).value, pin.value);
}