Merge branch 'develop' of github.com:thecodingmachine/workadventure

This commit is contained in:
_Bastler
2022-01-12 10:56:50 +01:00
21 changed files with 41 additions and 39 deletions
+4 -4
View File
@@ -107,10 +107,10 @@ class ConnectionManager {
const code = urlParams.get("code");
const state = urlParams.get("state");
if (!state || !localUserStore.verifyState(state)) {
throw "Could not validate state!";
throw new Error("Could not validate state!");
}
if (!code) {
throw "No Auth code provided";
throw new Error("No Auth code provided");
}
localUserStore.setCode(code);
}
@@ -337,10 +337,10 @@ class ConnectionManager {
if (!token) {
if (!state || !localUserStore.verifyState(state)) {
throw "Could not validate state!";
throw new Error("Could not validate state!");
}
if (!code) {
throw "No Auth code provided";
throw new Error("No Auth code provided");
}
}
const { authToken, userUuid, textures, email, username } = await Axios.get(`${PUSHER_URL}/login-callback`, {