verify — Code View¶
← Back to Container | ← Back to System
Component Information¶
| Field | Value |
|---|---|
| Component | verify |
| Container | @chrislyons-dev/flarelette-jwt |
| Type | module |
| Description | JWT verification utilities. This module provides functions to verify JWT tokens using either HS512 or EdDSA algorithms. It supports integration with JWKS services and thumbprint pinning. |
| --- |
Code Structure¶
Class Diagram¶

Code Elements¶
2 code element(s)
#### Functions ##### `resolveVerificationKey()` Resolve verification key from configured sources Implements key resolution strategy pattern: - Strategy 1: HS512 shared secret - Strategy 2: Inline public JWK - Strategy 3: Service binding JWKS - Strategy 4: HTTP JWKS URL | Field | Value | | --- | --- | | **Type** | `function` | | **Visibility** | `private` | | **Async** | Yes || **Returns** | `Promise<{ key: Uint8Arraystring — - JWT token string- `opts`: Partial<{ jwksService: import("C:/Users/chris/git/flarelette-jwt-kit/packages/flarelette-jwt-ts/src/types").Fetcher; jwksUrl: string; jwksCacheTtl: number; }> — - Verification options --- ##### `verify()` Verify a JWT token with HS512, EdDSA, or RSA algorithms Supports multiple key resolution strategies with automatic algorithm detection | Field | Value | | --- | --- | | **Type** | `function` | | **Visibility** | `public` | | **Async** | Yes || **Returns** | `Promisestring — - JWT token string to verify- `opts`: Partial<{ iss: string; aud: string | string[]; leeway: number; jwksService: import("C:/Users/chris/git/flarelette-jwt-kit/packages/flarelette-jwt-ts/src/types").Fetcher; jwksUrl: string; jwksCacheTtl: number; }> — - Optional overrides for iss, aud, leeway, jwksService, jwksUrl, jwksCacheTtl ---