Checks a typed code and, when it is right and unexpired, spends it and finishes the step. Wrong codes are counted and end the step at the policy's limit.
the request
the response
the step's id
the code as typed
a promise settled when the answer is sent
Checks a typed code and, when it is right and unexpired, spends it and finishes the step. Wrong codes are counted and end the step at the policy's limit.