@cfxlabsinc/b2b-services
    Preparing search index...

    The one-time code FIB emails on a device step-up, handed from the inbound email handler to the process that is logging in, through Valkey.

    Index
    • Parameters

      • args: { pollIntervalMs?: number; valkeyClient: ValkeyClient; waitTimeoutMs?: number }
        • OptionalpollIntervalMs?: number
        • valkeyClient: ValkeyClient
        • OptionalwaitTimeoutMs?: number

          How long waitForCode waits for the email. Defaults to 90 s.

      Returns FibSecurityCodeService

    instance: (...args: []) => FibSecurityCodeService = ...

    The process default: built from each dependency's own instance().

    • Take the code from an email received after requestedAt, when the code was asked for, or null when none arrives in time. A code is taken once; one from an earlier request is discarded, since FIB may have voided it.

      Parameters

      Returns Promise<string | null>