Utility for handling recovery code nodes.

Example:

// Determine if step is Display Recovery Codes step
const isDisplayRecoveryCodesStep = FRRecoveryCodes.isDisplayStep(step);
if (isDisplayRecoveryCodesStep) {
const recoveryCodes = FRRecoveryCodes.getCodes(step);
// Do the UI needful
}

Constructors

Methods

  • Retrieves the recovery codes by parsing the JavaScript message text in callback.

    Parameters

    • step: FRStep

      The step to evaluate

    Returns string[]

    Recovery Code values in array

  • Determines if the given step is a Display Recovery Codes step.

    Parameters

    • step: FRStep

      The step to evaluate

    Returns boolean

    Is this step a Display Recovery Codes step