iya-sts
    Preparing search index...

    Variable spendNonceOnce

    spendNonceOnce: (id: any, expiresS: any) => Record<string, any> = ...

    Type Declaration

      • (id: any, expiresS: any): Record<string, any>
      • Spends a nonce once across the cluster: the local check first, then a claim that lasts until the nonce expires plus a minute.

        Parameters

        • id: any

          the nonce's random part

        • expiresS: any

          when it expires, in seconds

        Returns Record<string, any>

        a promise of { ok: true }, { ok: false, reason: 'used' } or { ok: false, reason, why }