iya-sts
    Preparing search index...
    matches: (secret: string, stored: unknown) => Promise<boolean> = ...

    Type Declaration

      • (secret: string, stored: unknown): Promise<boolean>
      • Tells whether a code or token matches its stored hash; an unreadable hash matches nothing.

        Parameters

        • secret: string

          what was presented

        • stored: unknown

          the stored hash

        Returns Promise<boolean>

        a promise of true when it matches