commit
5321c3ed9d
2
types/index.d.ts
vendored
2
types/index.d.ts
vendored
@ -32,11 +32,13 @@ declare module 'socketio-jwt' {
|
|||||||
callback?: (false | number);
|
callback?: (false | number);
|
||||||
secret: (string | ((request: any, decodedToken: object, callback: ISocketCallback) => void));
|
secret: (string | ((request: any, decodedToken: object, callback: ISocketCallback) => void));
|
||||||
|
|
||||||
|
encodedPropertyName?: string;
|
||||||
decodedPropertyName?: string;
|
decodedPropertyName?: string;
|
||||||
auth_header_required?: boolean;
|
auth_header_required?: boolean;
|
||||||
handshake?: boolean;
|
handshake?: boolean;
|
||||||
required?: boolean;
|
required?: boolean;
|
||||||
timeout?: number;
|
timeout?: number;
|
||||||
|
cookie?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
function authorize(options: IOptions/*, onConnection: Function*/): ISocketIOMiddleware;
|
function authorize(options: IOptions/*, onConnection: Function*/): ISocketIOMiddleware;
|
||||||
|
Reference in New Issue
Block a user