fix connected on anonymous

This commit is contained in:
_Bastler 2022-03-22 08:59:44 +01:00
parent 6223050451
commit 5589cc4ce1

View File

@ -331,7 +331,7 @@ class ConnectionManager {
throw new Error("No Auth code provided");
}
}
const { authToken, userUuid, email, username, locale, textures } = await Axios.get(
const { authToken, userUuid, email, username, locale, textures, anonymous } = await Axios.get(
`${PUSHER_URL}/login-callback`,
{
params: { code, nonce, token, playUri: this.currentRoom?.key },
@ -378,7 +378,7 @@ class ConnectionManager {
}
//user connected, set connected store for menu at true
userIsConnected.set(true);
userIsConnected.set(!anonymous);
}
async getWorlds() : Promise<World[]> {