iya-sts
    Preparing search index...
    recordRotated: (
        username: unknown,
        previousHash: string,
        expires: number,
        rotatedAt: string,
    ) => boolean = ...

    Type Declaration

      • (
            username: unknown,
            previousHash: string,
            expires: number,
            rotatedAt: string,
        ): boolean
      • Records a rotation that was committed: the previous hash kept until expires, the time, and the failure count reset.

        Parameters

        • username: unknown

          the account

        • previousHash: string

          the hash the rotation replaced ('' for none)

        • expires: number

          when it stops being accepted (ms)

        • rotatedAt: string

          GeneralizedTime of the rotation

        Returns boolean

        whether it was written