timingSafeSecretMatch — @gj-kit/nest-operations-jobs
A public function from @gj-kit/nest-operations-jobs/core. The signature below is taken directly from the 0.1.1 release declaration.
Verified import example
Section titled “Verified import example”import { timingSafeSecretMatch } from '@gj-kit/nest-operations-jobs/core';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”/** * Constant-time secret comparison. * * Both sides are SHA-256 hashed first, so the comparison cost never depends on * input length and a mismatched length cannot be observed through timing. * Non-string inputs return false. */declare function timingSafeSecretMatch(expected: string, presented: string): boolean;This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.
Release context
Section titled “Release context”- Package:
@gj-kit/nest-operations-jobs - Version:
0.1.1 - Public entry:
./core - Source: GitHub