Files
infisical/frontend/pages/api/auth/CheckEmailVerificationCode.ts
T
2022-12-11 15:02:15 +09:00

26 lines
514 B
TypeScript

interface Props {
email: string;
code: string;
}
/**
* This route check the verification code from the email that user just recieved
* @param {*} email
* @param {*} code
* @returns
*/
const checkEmailVerificationCode = ({ email, code }: Props) => {
return fetch('/api/v1/signup/email/verify', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
email: email,
code: code
})
});
};
export default checkEmailVerificationCode;