Skip to content

looksLikeJwt — @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.

import { looksLikeJwt } from '@gj-kit/nest-operations-jobs/core';
/**
* Cheap structural check for a compact JWS: three non-empty base64url segments.
* Used to keep a mistyped shared secret from reaching a network verifier, which
* would otherwise turn every bad request into an outbound token-info call.
* It proves nothing about signature, issuer, audience or expiry.
*/
declare function looksLikeJwt(token: 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.

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