Skip to main content
Signs an install token a handler built against testJwks accepts.

Parameters

claims?

Partial<TappifyClaims> = {}

options?

expiresIn?

string

extensionId?

string

Returns

Promise<string>

Remarks

Every claim has a default — install ins_test, extension starter, project prj_north, organization org_test, no scopes — and the audience is ext:<extensionId>, taken from options.extensionId, then from the claims, then starter. It expires in five minutes unless expiresIn says otherwise, which is how a test covers an expired token. createTestClient and createTapMock sign their own tokens, so reach for this only when a test verifies a token itself.

Example