some more authentik stuff

This commit is contained in:
2024-10-31 02:38:33 -07:00
parent 0901e242eb
commit 5fc9cf25c8
5 changed files with 55 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
<script lang="ts">
import { invalidate, invalidateAll } from '$app/navigation';
import { Button } from '$lib/components/ui/button';
let { data } = $props();
function refetch() {
console.log("refetching");
invalidate((url) => {
console.log("invalidation url", url);
return true;
});
invalidateAll();
}
</script>
<p>
{JSON.stringify(data.user)}
</p>
<Button onclick={refetch}>
Invalidate Data
</Button>