Documents for @litert/jwt / Types / IJwaSigner
Interface: IJwaSigner
Defined in: src/lib/Types.ts:357
The type of the signer objects used in stringify API, to sign the JWTs.
Properties
digestType
readonlydigestType:EDigestType
Defined in: src/lib/Types.ts:376
The digest type to use for signing.
family
readonlyfamily:ESigningAlgoFamily
Defined in: src/lib/Types.ts:361
The signing algorithm family.
jwa
readonlyjwa:ESigningJwa
Defined in: src/lib/Types.ts:371
The signing algorithm to use, for the alg claim in the JWT header.
keyId?
readonlyoptionalkeyId?:string|null
Defined in: src/lib/Types.ts:366
The key ID to use in the JWT header.
Methods
sign()
sign(
data):Buffer
Defined in: src/lib/Types.ts:385
Sign the provided data and return the signature.
Parameters
data
string | Buffer<ArrayBufferLike>
The data to sign.
Returns
Buffer
The signature.