getPin method

  1. @override
Future<PinHash?> getPin({
  1. required UserId forUser,
})
override

Returns the PinHash of the user with forUser id, or null if no pin is set

Implementation

@override
Future<PinHash?> getPin({required UserId forUser}) async {
  final pinHash = sp.getString(_keyStringPin(forUser).value);
  if (pinHash != null) {
    return PinHash(pinHash);
  }
  return null;
}