From 340f3ad9735a60e618d05f8998aa2e0a0fa20a38 Mon Sep 17 00:00:00 2001 From: Goran Butorac Date: Thu, 2 Jun 2022 13:46:19 -0400 Subject: [PATCH] allow no value for setExpiration change type definition to make passing an argument optional, as otherwise it doesn't allow for exp claim removal functionality that is described in the README --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 0ef8a4a..3142247 100644 --- a/index.d.ts +++ b/index.d.ts @@ -42,7 +42,7 @@ export declare class Jwt { setSubject(sub: string): Jwt; setIssuer(iss: string): Jwt; setIssuedAt(iat: number): Jwt; - setExpiration(exp: Date | number | string): Jwt; + setExpiration(exp?: Date | number | string): Jwt; setNotBefore(nbf: Date | number | string): Jwt; setSigningKey(key: string | Buffer): Jwt; signingKey: string | Buffer;