enablePinAuthentication method
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);
}