iya-sts
    Preparing search index...

    Variable spendProofNonces

    spendProofNonces: (
        proofJwts: any,
    ) => Promise<
        | { description: string; errorCode: string; ok: boolean }
        | { description?: undefined; errorCode?: undefined; ok: boolean },
    > = ...

    Type Declaration

      • (
            proofJwts: any,
        ): Promise<
            | { description: string; errorCode: string; ok: boolean }
            | { description?: undefined; errorCode?: undefined; ok: boolean },
        >
      • Spends the c_nonce of every proof across the cluster, so a replay on another node is refused. Fails closed when the store cannot be asked.

        Parameters

        • proofJwts: any

          the proofs

        Returns Promise<
            | { description: string; errorCode: string; ok: boolean }
            | { description?: undefined; errorCode?: undefined; ok: boolean },
        >

        { ok: true }, or { ok: false, errorCode, description }