email verification flow updated

This commit is contained in:
jackiettran
2025-12-15 22:45:55 -05:00
parent 5e01bb8cff
commit 372ab093ef
19 changed files with 1214 additions and 246 deletions

View File

@@ -162,7 +162,7 @@ export const authAPI = {
refresh: () => api.post("/auth/refresh"),
getCSRFToken: () => api.get("/auth/csrf-token"),
getStatus: () => api.get("/auth/status"),
verifyEmail: (token: string) => api.post("/auth/verify-email", { token }),
verifyEmail: (code: string) => api.post("/auth/verify-email", { code }),
resendVerification: () => api.post("/auth/resend-verification"),
forgotPassword: (email: string) =>
api.post("/auth/forgot-password", { email }),