getPin method
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;
}