aboutsummaryrefslogtreecommitdiff
path: root/web/pw-server/src/lib/stores
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-03-22 18:10:39 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2022-03-22 18:10:39 +0100
commit2b5a80a0324d153b20eac7e6949cc02aea9c1c07 (patch)
tree87be8ab0dda9a504eb9fe83c6c5c360178ab3f65 /web/pw-server/src/lib/stores
parent6ab8db31c38eb9bf50485bea4cfc3b09add3daad (diff)
downloadplanetwars.dev-2b5a80a0324d153b20eac7e6949cc02aea9c1c07.tar.xz
planetwars.dev-2b5a80a0324d153b20eac7e6949cc02aea9c1c07.zip
implement currentUser store
Diffstat (limited to 'web/pw-server/src/lib/stores')
-rw-r--r--web/pw-server/src/lib/stores/current_user.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/pw-server/src/lib/stores/current_user.ts b/web/pw-server/src/lib/stores/current_user.ts
new file mode 100644
index 0000000..ac53070
--- /dev/null
+++ b/web/pw-server/src/lib/stores/current_user.ts
@@ -0,0 +1,3 @@
+import { writable } from "svelte/store";
+
+export const currentUser = writable(null);