INNER CODE UNIT · TypeScript
getConfirmation
flaviuse/mern-authentication · client/src/api/index.ts:16
const getConfirmation = (token: string) => http.get<void>(`/auth/confirmation/${token}`);
const resendConfirmation = (email: string) => http.post<void>("/auth/send-confirmation", { email });
const resetRegister = (email: string) => http.post<void>("/user/register/cancel", { email });
const getUser = () => http.get<{ user: User }>("/user");
export {
postLogin,
sendResetPasswordLink,
resetPassword,
postLogout,
postUser,
getConfirmation,
resendConfirmation,
getUser,
resetRegister,