🚧 Adds token form
All checks were successful
Gitea Build Action / build (push) Successful in 28s

This commit is contained in:
Daniel Svitan
2025-06-05 09:48:58 +02:00
parent 7aaa0c0aab
commit a48d1238a2
3 changed files with 50 additions and 4 deletions

View File

@@ -6,8 +6,12 @@
</template>
<script lang="ts" setup>
const res = await useFetch("https://door.svitan.dev/", {
method: "GET",
retry: 2,
const token = useCookie("token")
onMounted(() => {
if (!token.value) {
return navigateTo("/token")
}
console.log(token.value)
})
</script>