Removed conflicting and redundant logic

This commit is contained in:
2025-02-10 13:39:17 +01:00
parent 9413fdbb2f
commit 592d1df9bf
7 changed files with 14 additions and 43 deletions

View File

@ -44,13 +44,4 @@ function switchToLogin() {
currentForm.value = 'login'
doesUrlHaveToken.value = false
}
// automatic login because of development
onMounted(async () => {
const token = useCookies().get('token')
if (token) {
gameStore.setToken(token)
gameStore.initConnection()
}
})
</script>