feat: User onboarding finished
This commit is contained in:
@@ -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);
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user