diff --git a/src/JWT.ts b/src/JWT.ts index 2994d88a..2fd6e596 100644 --- a/src/JWT.ts +++ b/src/JWT.ts @@ -194,7 +194,9 @@ export function decodeJWT(jwt: string): JWTDecoded { * @param {Object} payload payload object * @param {Signer} signer a signer, see `ES256KSigner or `EdDSASigner` * @param {Object} header optional object to specify or customize the JWS header - * @return {Promise} a promise which resolves with a JWS string or rejects with an error + * @param {Object} options can be used to trigger automatic canonicalization of header and + * payload properties + * @return {Promise} a Promise which resolves to a JWS string or rejects with an error */ export async function createJWS( payload: string | Partial, diff --git a/src/index.ts b/src/index.ts index efa9fdf3..9023aada 100644 --- a/src/index.ts +++ b/src/index.ts @@ -48,3 +48,5 @@ export { JWTPayload, JWTVerified, } + +export { JWTOptions, JWTVerifyOptions } from './JWT'