Skip to content

signJwt ​

signJwt ​

Signs a JWT. The header carries typ: "JWT" unless header.typ says otherwise.

Throws a ResultError coded SignJoseErrorCode for an unusable key, algorithm or header, and invalid_claims when claims cannot be serialized.

ts
function signJwt(
	input: SignJwtInput,
): Promise<string>

Parameters

Released under the MIT License.