This commit is contained in:
Dennis Postma 2024-10-21 02:15:29 +02:00
parent df19c1094c
commit 715fe5c318
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ export async function login(username: string, password: string) {
useCookies().set('token', response.data.token as string, { useCookies().set('token', response.data.token as string, {
// for whole domain // for whole domain
// @TODO : #190 // @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 } return { success: true, token: response.data.token }
} catch (error: any) { } catch (error: any) {

View File

@ -108,7 +108,7 @@ export const useGameStore = defineStore('game', {
useCookies().remove('token', { useCookies().remove('token', {
// for whole domain // for whole domain
// @TODO : #190 // @TODO : #190
// domain: window.location.hostname.split('.').slice(-2).join('.') domain: window.location.hostname.split('.').slice(-2).join('.')
}) })
// this.isAssetsLoaded = false // this.isAssetsLoaded = false