1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
6594895273 2.4.2 2024-01-21 00:08:03 +01:00
61a3a2ed50 update JwtPayload type, thanks @Le0Developer #61 2024-01-21 00:06:50 +01:00
3 changed files with 4 additions and 6 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@tsndr/cloudflare-worker-jwt",
"version": "2.4.1",
"version": "2.4.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@tsndr/cloudflare-worker-jwt",
"version": "2.4.1",
"version": "2.4.2",
"license": "MIT",
"devDependencies": {
"@cloudflare/workers-types": "^4.20231025.0",

View File

@@ -1,6 +1,6 @@
{
"name": "@tsndr/cloudflare-worker-jwt",
"version": "2.4.1",
"version": "2.4.2",
"description": "A lightweight JWT implementation with ZERO dependencies for Cloudflare Worker",
"type": "module",
"exports": "./index.js",

View File

@@ -46,7 +46,7 @@ export type JwtHeader<T = {}> = {
* @prop {string} [iat] Issued At
* @prop {string} [jti] JWT ID
*/
export type JwtPayload<T = {}> = {
export type JwtPayload<T = { [key: string]: any }> = {
/** Issuer */
iss?: string
@@ -67,8 +67,6 @@ export type JwtPayload<T = {}> = {
/** JWT ID */
jti?: string
[key: string]: any
} & T
/**