feature: verify tokens

This commit is contained in:
2024-11-17 22:28:29 +05:30
parent 26a00c9f7c
commit 9d40c9d7ec
57 changed files with 4188 additions and 276 deletions

View File

@@ -3,11 +3,11 @@
import { updated } from '$app/stores';
import { setContextClient } from '@urql/svelte';
import { newClient } from '$lib/gql/client';
import { Me } from '$lib/gql/account.gql';
import '../app.css';
import { Me } from '$lib/gql/auth.gql';
const { children } = $props();
const host = import.meta.env.VITE_GRAPH_URL ?? ''
const host = import.meta.env.VITE_GRAPH_URL ?? '';
const client = newClient(`${host}/query`);
setContextClient(client);

View File

@@ -0,0 +1,7 @@
<script lang="ts">
import { page } from '$app/stores';
const hash = $derived($page.url.hash);
</script>
<p>hello</p>
<p>{hash}</p>