feat:#4 added persistent storage option

This commit is contained in:
Elmar Kresse
2024-05-20 18:52:51 +02:00
parent 306ca12391
commit 1d6fb156c2
5 changed files with 20 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ const tokenStore = defineStore("tokenStore", {
state: () => ({
token: "",
}),
persist: true,
actions: {
setToken(token: string) {
this.token = token;