drupflare/worker - v1.0.4
    Preparing search index...

    Function tokenMatches

    • Compares a presented token against the stored one in constant time; the lengths fold into the accumulator so a wrong-length guess costs the same as a wrong value.

      Parameters

      • presented: string | null | undefined
      • stored: string | null

      Returns boolean