Skip to content

timingSafeEqual

reference
1 min readUpdated

Kind: Function

Source: src/utils/buffer.ts

Part of: Utils

Signature

ts
async function timingSafeEqual(a, b, hashFunction: Function): Promise<boolean>

Parameters

NameType
aany
bany
hashFunctionFunction

Returns: Promise<boolean>

Used by

2 references from 2 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

Imported by (2)

  • handlersrc/middleware/basic-auth/index.ts:118
  • bearerAuthsrc/middleware/bearer-auth/index.ts:104

Was this page helpful?

Download as PDF
timingSafeEqual — Hono (narrator proof)