diff --git a/types/index.d.ts b/types/index.d.ts index 9e6c428..4ba5ba0 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -32,11 +32,13 @@ 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; required?: boolean; timeout?: number; + cookie?: string; } function authorize(options: IOptions/*, onConnection: Function*/): ISocketIOMiddleware;