Skip to content

Commit

Permalink
feat: export JWTOptions and JWTVerifyOptions parameter types (#198)
Browse files Browse the repository at this point in the history
fixes #197
  • Loading branch information
mirceanis authored Aug 31, 2021
1 parent 7e4aab8 commit 8ba42e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/JWT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object, Error>} 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<string>} a Promise which resolves to a JWS string or rejects with an error
*/
export async function createJWS(
payload: string | Partial<JWTPayload>,
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ export {
JWTPayload,
JWTVerified,
}

export { JWTOptions, JWTVerifyOptions } from './JWT'

0 comments on commit 8ba42e7

Please sign in to comment.