Removed the token store

This commit is contained in:
2026-09-07 23:55:57 +03:00
parent 817d61a663
commit cddfc1e24b
8 changed files with 62 additions and 69 deletions
+8 -3
View File
@@ -1,8 +1,13 @@
<script setup>
import {useStore} from '@nanostores/vue'
import {$token, Loading, Anonymous} from "../stores/token.js";
import {ref, onMounted} from "vue";
import {loadToken, Anonymous} from "../scripts/load_token.js";
const token = useStore($token)
const Loading = Symbol("loading")
const token = ref(Loading)
onMounted(() => {
token.value = loadToken()
})
</script>
<template>