Added world settings type and added it into gameStore

This commit is contained in:
2024-10-14 20:11:30 +02:00
parent 1bdd2bc75a
commit 8b1efca7b8
4 changed files with 23 additions and 3 deletions

View File

@ -18,6 +18,7 @@ export async function login(username: string, password: string, gameStore = useG
const response = await axios.post(`${config.server_endpoint}/login`, { username, password })
useCookies().set('token', response.data.token as string, {
// for whole domain
// @TODO : #190
domain: window.location.hostname.split('.').slice(-2).join('.')
})
return { success: true, token: response.data.token }