advanceTotpStep abstract method

Future<bool> advanceTotpStep(
  1. String userId,
  2. int step
)

Spends step if it is later than the last one spent. Returns whether it was — false is a replay, or a concurrent request that spent it first.

Implementation

Future<bool> advanceTotpStep(String userId, int step);