From 1fef006cbfcbc0eeea80d10b72beb23af7c05a88 Mon Sep 17 00:00:00 2001 From: Toby Date: Sun, 21 Jan 2024 00:06:50 +0100 Subject: [PATCH] update JwtPayload type, thanks @Le0Developer #61 --- src/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 5f29d66..9f1fa4e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -46,7 +46,7 @@ export type JwtHeader = { * @prop {string} [iat] Issued At * @prop {string} [jti] JWT ID */ -export type JwtPayload = { +export type JwtPayload = { /** Issuer */ iss?: string @@ -67,8 +67,6 @@ export type JwtPayload = { /** JWT ID */ jti?: string - - [key: string]: any } & T /**