mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-11 03:28:58 +00:00
25 lines
528 B
TypeScript
25 lines
528 B
TypeScript
interface Props {
|
|
email: string;
|
|
code: string;
|
|
}
|
|
|
|
/**
|
|
* This route check the verification code from the email that user just recieved
|
|
* @param {object} obj
|
|
* @param {string} obj.email
|
|
* @param {string} obj.code
|
|
* @returns
|
|
*/
|
|
const checkEmailVerificationCode = ({ email, code }: Props) => fetch("/api/v1/signup/email/verify", {
|
|
method: "POST",
|
|
headers: {
|
|
"Content-Type": "application/json"
|
|
},
|
|
body: JSON.stringify({
|
|
email,
|
|
code
|
|
})
|
|
});
|
|
|
|
export default checkEmailVerificationCode;
|