1
0
forked from noxious/client

Remove cookie fix for prod. env.

This commit is contained in:
Dennis Postma 2024-09-10 14:27:57 +02:00
parent 7d0a6084c5
commit 37c39bd336

View File

@ -64,8 +64,11 @@ export const useGameStore = defineStore('game', {
disconnectSocket() {
if (this.connection) this.connection.disconnect()
useCookies().remove('token')
useCookies().remove('token', {
// for whole domain
domain: window.location.hostname.split('.').slice(-2).join('.')
})
this.connection = null
this.token = null
this.user = null