From 715fe5c318f645882c930a96729b162c82fe2bf4 Mon Sep 17 00:00:00 2001 From: Dennis Postma Date: Mon, 21 Oct 2024 02:15:29 +0200 Subject: [PATCH] Cookies --- src/services/authentication.ts | 2 +- src/stores/gameStore.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/authentication.ts b/src/services/authentication.ts index 4ccb044..f1c6ab0 100644 --- a/src/services/authentication.ts +++ b/src/services/authentication.ts @@ -18,7 +18,7 @@ export async function login(username: string, password: string) { useCookies().set('token', response.data.token as string, { // for whole domain // @TODO : #190 - // domain: window.location.hostname.split('.').slice(-2).join('.') + domain: window.location.hostname.split('.').slice(-2).join('.') }) return { success: true, token: response.data.token } } catch (error: any) { diff --git a/src/stores/gameStore.ts b/src/stores/gameStore.ts index c6737fd..44cd8e4 100644 --- a/src/stores/gameStore.ts +++ b/src/stores/gameStore.ts @@ -108,7 +108,7 @@ export const useGameStore = defineStore('game', { useCookies().remove('token', { // for whole domain // @TODO : #190 - // domain: window.location.hostname.split('.').slice(-2).join('.') + domain: window.location.hostname.split('.').slice(-2).join('.') }) // this.isAssetsLoaded = false