diff --git a/frontend/pages/auth/confirm-email.vue b/frontend/pages/auth/confirm-email.vue index c0c7715c..6059b907 100644 --- a/frontend/pages/auth/confirm-email.vue +++ b/frontend/pages/auth/confirm-email.vue @@ -38,7 +38,7 @@ const toast = useToast(); async function confirmEmail() { const { error } = await useFetch( `${runtimeConfig.public.API_AUTH_BASE_URL}/api/auth/confirm-email`, - { method: "POST", body: { confirmationToken } }, + { method: "POST", body: { confirmationToken }, server: false } ); if (error.value) { toast.add({ diff --git a/frontend/pages/auth/forgot-password.vue b/frontend/pages/auth/forgot-password.vue index b31a5acd..8a6bacfe 100644 --- a/frontend/pages/auth/forgot-password.vue +++ b/frontend/pages/auth/forgot-password.vue @@ -53,7 +53,7 @@ async function submit(event: FormSubmitEvent) { isLoading.value = true; const { error } = await useFetch( `${runtimeConfig.public.API_AUTH_BASE_URL}/api/auth/forgot-password`, - { method: "POST", body: JSON.stringify(event.data) }, + { method: "POST", body: JSON.stringify(event.data), server: false }, ); if (error.value) { isLoading.value = false; diff --git a/frontend/pages/auth/reset-password.vue b/frontend/pages/auth/reset-password.vue index 7495cebc..5f015b6d 100644 --- a/frontend/pages/auth/reset-password.vue +++ b/frontend/pages/auth/reset-password.vue @@ -69,9 +69,8 @@ const validate = (state: any): FormError[] => { }; async function submit(event: FormSubmitEvent) { - const { data, pending, error } = await useAsyncData("user", () => - $fetch( - `${runtimeConfig.public.API_AUTH_BASE_URL}/api/auth/reset-password`, + const { data, error } = await useFetch( + `${runtimeConfig.public.API_AUTH_BASE_URL}/api/auth/reset-password`, { method: "POST", body: JSON.stringify({ @@ -80,7 +79,6 @@ async function submit(event: FormSubmitEvent) { resetToken: resetToken, }), }, - ), ); if (error.value) { toast.add({ diff --git a/frontend/pages/auth/sign-in.vue b/frontend/pages/auth/sign-in.vue index 3ad910fa..fa80cc79 100644 --- a/frontend/pages/auth/sign-in.vue +++ b/frontend/pages/auth/sign-in.vue @@ -57,7 +57,7 @@ async function submit(event: FormSubmitEvent) { isLoading.value = true; const { data, error } = await useFetch( `${runtimeConfig.public.API_AUTH_BASE_URL}/api/auth/sign-in`, - { method: "POST", body: JSON.stringify(event.data) }, + { method: "POST", body: JSON.stringify(event.data), server: false }, ); if (error.value) { isLoading.value = false; diff --git a/frontend/pages/auth/sign-up.vue b/frontend/pages/auth/sign-up.vue index 86715972..ca64e98e 100644 --- a/frontend/pages/auth/sign-up.vue +++ b/frontend/pages/auth/sign-up.vue @@ -64,7 +64,7 @@ async function submit(event: FormSubmitEvent) { isLoading.value = true; const { error } = await useFetch( `${runtimeConfig.public.API_AUTH_BASE_URL}/api/auth/sign-up`, - { method: "POST", body: JSON.stringify(event.data) }, + { method: "POST", body: JSON.stringify(event.data), server: false }, ); if (error.value) { isLoading.value = false;