Skip to content

JobTriggerTokenVerifier — @gj-kit/nest-operations-jobs

A public interface from @gj-kit/nest-operations-jobs/core. The signature below is taken directly from the 0.1.1 release declaration.

import { JobTriggerTokenVerifier } from '@gj-kit/nest-operations-jobs/core';
/**
* Host-provided token verification. The library ships no cloud SDK: an adapter
* over `google-auth-library`'s `verifyIdToken`, a JWKS client or an internal
* mTLS-derived identity all satisfy this port.
*
* Return `null` for "not authenticated". Throwing is reserved for verifier
* outages, which the guard reports as 503 rather than 401.
*/
interface JobTriggerTokenVerifier {
verify(token: string): Promise<JobTriggerIdentity | null>;
}

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.

  • Package: @gj-kit/nest-operations-jobs
  • Version: 0.1.1
  • Public entry: ./core
  • Source: GitHub