iya-sts
    Preparing search index...
    previousPassword: (
        username: unknown,
        nowMs?: number,
    ) => { expires: number; hash: string } = ...

    Type Declaration

      • (username: unknown, nowMs?: number): { expires: number; hash: string }
      • Returns the previous password's hash while it is still accepted.

        Parameters

        • username: unknown

          the account

        • OptionalnowMs: number

          the time to compare with; now when omitted

        Returns { expires: number; hash: string }

        the hash and its expiry, or null outside the window