INNER CODE UNIT · TypeScript

resetRegister

flaviuse/mern-authentication · client/src/api/index.ts:20

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,
};

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…