Skip to content

Connectum API Reference / @connectum/auth / testing / TestJwksServer

Interface: TestJwksServer

Defined in: packages/auth/src/testing/test-jwt-rs256.ts:80

A running in-process JWKS server.

Properties

origin

readonly origin: string

Defined in: packages/auth/src/testing/test-jwt-rs256.ts:84

Origin (no path), e.g. http://127.0.0.1:<port>.


url

readonly url: string

Defined in: packages/auth/src/testing/test-jwt-rs256.ts:82

The JWKS URL — pass as jwksUri to createJwtAuthInterceptor.

Methods

close()

close(): Promise<void>

Defined in: packages/auth/src/testing/test-jwt-rs256.ts:86

Stop the server. Call after the test (e.g. in after).

Returns

Promise<void>