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

20 lines
732 B
TypeScript
Raw 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
* @param {http.IncomingMessage & Object<string, any>} params.request
* @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
*/
declare function validateTempEmailCode({ request, email }: {
request: http.IncomingMessage & {
[x: string]: any;
};
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");