forked from noxious/client
Remove cookie fix for prod. env.
This commit is contained in:
parent
7d0a6084c5
commit
37c39bd336
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user