website refactor

This commit is contained in:
2026-01-19 12:35:16 +01:00
parent a8731e6937
commit 15290400b3
122 changed files with 902 additions and 255 deletions

View File

@@ -10,7 +10,13 @@ export function useForgotPassword(
const authService = useInject(AUTH_SERVICE_TOKEN);
return useMutation<{ message: string; magicLink?: string }, ApiError, ForgotPasswordDTO>({
mutationFn: (params) => authService.forgotPassword(params),
mutationFn: async (params) => {
const result = await authService.forgotPassword(params);
if (result.isErr()) {
throw result.getError();
}
return result.unwrap();
},
...options,
});
}