finalised client APIs and authentication method

This commit is contained in:
DecDuck
2024-10-09 00:37:11 +11:00
parent 425934d3ef
commit d4e2dc8cb6
10 changed files with 112 additions and 5 deletions

View File

@ -134,13 +134,13 @@ import { CheckCircleIcon } from "@heroicons/vue/24/outline";
const route = useRoute();
const clientId = route.params.id;
const clientData = await useFetch(`/api/v1/client/callback?id=${clientId}`);
const clientData = await useFetch(`/api/v1/client/auth/callback?id=${clientId}`);
const completed = ref(false);
const error = ref();
async function authorize() {
const redirect = await $fetch<string>("/api/v1/client/callback", {
const redirect = await $fetch<string>("/api/v1/client/auth/callback", {
method: "POST",
body: { id: clientId },
});