Documents for @litert/jwt / Algorithms/Ecdsa / IEcdsaSignerOptions
Interface: IEcdsaSignerOptions
Defined in: src/lib/Algorithms/Ecdsa.ts:26
The options for creating an ECDSA JWT signer.
Properties
keyId?
optionalkeyId:string|null
Defined in: src/lib/Algorithms/Ecdsa.ts:47
The key ID to use in the JWT header.
When using
stringifyAPI, it will not automatically set thekidclaim in the JWT header even if this value is provided here. You need to set it manually in theheaderoption of thestringifyAPI.
Optional
privateKey
privateKey:
string|KeyObject
Defined in: src/lib/Algorithms/Ecdsa.ts:36
The private key to use for signing. If a string is provided, it must be a PEM encoded EC private key, both PKCS#8 and SEC1 formats are supported.
The digest algorithm and JWA will be inferred from the key, no need to specify them manually.