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);
|
||||
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;
|
||||
|
Reference in New Issue
Block a user