datasquirel/users/logout-user.d.ts

32 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-11-08 15:44:31 +00:00
export = logoutUser;
/**
* Logout user
* ==============================================================================
* @param {object} params - Single Param object containing params
2024-12-10 18:05:05 +00:00
* @param {string} [params.encryptedUserString] - Encrypted User String
* @param {http.IncomingMessage & Object<string, any>} [params.request] - Request Object
2024-12-08 08:58:57 +00:00
* @param {http.ServerResponse & Object<string, any>} [params.response] - Http response object
2024-12-13 13:08:41 +00:00
* @param {string} [params.cookieString]
2024-12-08 08:58:57 +00:00
* @param {string} [params.database] - Target database name(slug): optional
* @param {string | number} [params.dsqlUserId]
2024-11-08 15:44:31 +00:00
*
2024-12-10 18:14:00 +00:00
* @returns {{success: boolean, msg: string, cookieNames?: any}}
2024-11-08 15:44:31 +00:00
*/
2024-12-13 13:08:41 +00:00
declare function logoutUser({ response, database, dsqlUserId, encryptedUserString, request, cookieString, }: {
2024-12-10 18:05:05 +00:00
encryptedUserString?: string;
request?: http.IncomingMessage & {
[x: string]: any;
};
2024-12-08 08:58:57 +00:00
response?: http.ServerResponse & {
[x: string]: any;
};
2024-12-13 13:08:41 +00:00
cookieString?: string;
2024-11-08 15:44:31 +00:00
database?: string;
2024-12-08 08:58:57 +00:00
dsqlUserId?: string | number;
2024-11-08 15:44:31 +00:00
}): {
success: boolean;
2024-12-10 18:14:00 +00:00
msg: string;
2024-12-08 08:58:57 +00:00
cookieNames?: any;
2024-11-08 15:44:31 +00:00
};
import http = require("http");