mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
18 lines
400 B
JavaScript
18 lines
400 B
JavaScript
/**
|
|
* This route send the verification email to the user's email (contains a 6-digit verification code)
|
|
* @param {*} email
|
|
*/
|
|
const sendVerificationEmail = (email) => {
|
|
fetch("/api/v1/signup/email/signup", {
|
|
method: "POST",
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
body: JSON.stringify({
|
|
email: email,
|
|
}),
|
|
});
|
|
};
|
|
|
|
export default sendVerificationEmail;
|