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

    The one FIB online-banking session every process shares, through Valkey.

    A login may revoke the session before it, so logins are single-flight across processes: one holder of a Valkey lock logs in while the rest wait for its session, and a caller whose session died logs in only if the stored session is still the one that died. Each login sends the device token the last one ended with, so every process presents the one browser FIB has seen.

    Index
    • Parameters

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

          The first poll interval while waiting; it doubles to 2 s.

        • valkeyClient: ValkeyClient
        • OptionalwaitTimeoutMs?: number

          How long a caller waits on another process's login. Defaults to 150 s, the lock's lifetime.

      Returns FibSessionService

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

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