From 28f9a4e409cdb1610698861758fa413cf3bcfbb2 Mon Sep 17 00:00:00 2001 From: Root-Core Date: Wed, 24 Jul 2019 16:48:32 +0200 Subject: [PATCH 1/2] Update index.d.ts - Added cookie option to typings, as added in #134 by @Kaisle --- types/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/index.d.ts b/types/index.d.ts index 9e6c428..709477d 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -37,6 +37,7 @@ declare module 'socketio-jwt' { handshake?: boolean; required?: boolean; timeout?: number; + cookie?: string; } function authorize(options: IOptions/*, onConnection: Function*/): ISocketIOMiddleware; From d6d3eb66d2c7a52fe968e69e16cde571a425cfb6 Mon Sep 17 00:00:00 2001 From: Root-Core Date: Wed, 24 Jul 2019 16:52:32 +0200 Subject: [PATCH 2/2] Update index.d.ts #118 --- types/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/index.d.ts b/types/index.d.ts index 709477d..4ba5ba0 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -32,6 +32,7 @@ declare module 'socketio-jwt' { callback?: (false | number); secret: (string | ((request: any, decodedToken: object, callback: ISocketCallback) => void)); + encodedPropertyName?: string; decodedPropertyName?: string; auth_header_required?: boolean; handshake?: boolean;