small fixes & SSR disabled

SSR was causing weird issues where error pages would flash because the
user wasn't logged in. I'm disabling it for now, but I will eventually
look into ways to fix the issue and re-enable it.
This commit is contained in:
DecDuck
2024-10-17 21:04:32 +11:00
parent 91b7e1071c
commit 1f575b2bc0
5 changed files with 24 additions and 15 deletions

View File

@ -134,7 +134,11 @@ import { CheckCircleIcon } from "@heroicons/vue/24/outline";
const route = useRoute();
const clientId = route.params.id;
const clientData = await useFetch(`/api/v1/client/auth/callback?id=${clientId}`);
const headers = useRequestHeaders(["cookie"]);
const clientData = await useFetch(
`/api/v1/client/auth/callback?id=${clientId}`,
{ headers }
);
const completed = ref(false);
const error = ref();