Skip to content

Interface: TokenValidatorOptions

Interface: TokenValidatorOptions

Defined in: auth-server-ts/src/http-clients/token-validator.ts:26

Legacy back-compat shim exposing the same surface the original TokenValidator class had: a validate(token) that throws TokenValidationError with a stable code string. Internally delegates to the new JwtValidator (with secret rotation + token-version gate).

Framework adapters that still throw TokenValidationError (e.g. the NestJS adapter in auth-server-nest) continue to compile unchanged.

New code: use AuthClient (top-level façade) or JwtValidator directly.

Properties

accessSecret

accessSecret: string

Defined in: auth-server-ts/src/http-clients/token-validator.ts:27


accessSecretPrevious?

optional accessSecretPrevious?: string

Defined in: auth-server-ts/src/http-clients/token-validator.ts:28


audience?

optional audience?: string

Defined in: auth-server-ts/src/http-clients/token-validator.ts:30


cache?

optional cache?: TokenCachePort | null

Defined in: auth-server-ts/src/http-clients/token-validator.ts:32


checkRevocation?

optional checkRevocation?: boolean

Defined in: auth-server-ts/src/http-clients/token-validator.ts:31


issuer?

optional issuer?: string

Defined in: auth-server-ts/src/http-clients/token-validator.ts:29


logger?

optional logger?: LoggerPort

Defined in: auth-server-ts/src/http-clients/token-validator.ts:33