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
}

Hierarchy

  • FRRecoveryCodes

Methods

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

    Returns

    Recovery Code values in array

    Parameters

    • step: FRStep

      The step to evaluate

    Returns string[]

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

    Returns

    Is this step a Display Recovery Codes step

    Parameters

    • step: FRStep

      The step to evaluate

    Returns boolean

Constructors