feat: finish verification API
This commit is contained in:
@ -23,3 +23,12 @@ export const confirmEmailApi = async (
|
|||||||
|
|
||||||
return response.data;
|
return response.data;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const finishVerificationApi = async (): Promise<void> => {
|
||||||
|
const response = await axios.post("/api/v1/auth/verify");
|
||||||
|
|
||||||
|
if (response.status !== 200 && response.status !== 201)
|
||||||
|
throw await handleApiError(response);
|
||||||
|
|
||||||
|
return response.data;
|
||||||
|
};
|
||||||
|
Reference in New Issue
Block a user