datasquirel/users/validate-temp-email-code.d.ts

22 lines
817 B
TypeScript
Raw Permalink Normal View History

2024-12-10 14:10:32 +00:00
export = validateTempEmailCode;
/**
* Verify the temp email code sent to the user's email address
* ==============================================================================
* @async
*
* @param {object} params - Single Param object containing params
2024-12-13 13:08:41 +00:00
* @param {http.IncomingMessage & Object<string, any>} [params.request]
* @param {string} [params.cookieString]
2024-12-10 14:10:32 +00:00
* @param {string} [params.email]
*
2024-12-10 14:31:53 +00:00
* @returns { Promise<import("../package-shared/types").SendOneTimeCodeEmailResponse | null>}
2024-12-10 14:10:32 +00:00
*/
2024-12-13 13:08:41 +00:00
declare function validateTempEmailCode({ request, email, cookieString }: {
request?: http.IncomingMessage & {
2024-12-10 14:10:32 +00:00
[x: string]: any;
};
2024-12-13 13:08:41 +00:00
cookieString?: string;
2024-12-10 14:10:32 +00:00
email?: string;
2024-12-10 14:31:53 +00:00
}): Promise<import("../package-shared/types").SendOneTimeCodeEmailResponse | null>;
2024-12-10 14:10:32 +00:00
import http = require("http");