feat: User onboarding finished

This commit is contained in:
Eric Gullickson
2025-12-23 10:26:10 -06:00
parent 55cf4923b8
commit 96ee43ea94
19 changed files with 698 additions and 67 deletions

View File

@@ -52,3 +52,21 @@ export const useResendVerification = () => {
},
});
};
/**
* Public resend verification - no authentication required
* Used on the "Check Your Email" page before user can login
*/
export const useResendVerificationPublic = () => {
return useMutation({
mutationFn: (email: string) => authApi.resendVerificationPublic({ email }),
onSuccess: (data) => {
toast.success(data.message || 'If an account exists, a verification link will be sent.');
},
onError: (error: ApiError) => {
// Always show success message for security (don't reveal if email exists)
toast.success('If an account exists, a verification link will be sent.');
console.error('Resend verification error:', error);
},
});
};