Function workerTokenMatches

  • Whether token is the one whose hash is hash, compared in constant time.

    Parameters

    • token: string

      The bearer a report presented.

    • hash: string

      The hashWorkerToken hash the run's dispatch record keeps.

    Returns boolean

    false as well when hash is not 64 hex digits.