mirror of
https://github.com/Thream/socketio-jwt.git
synced 2024-07-21 09:38:31 +02:00
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;
|
||||
|
Loading…
Reference in New Issue
Block a user