mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-09 15:38:03 -05: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;
|