From d590b8144609410395e1e6f837ee676fbfecbff7 Mon Sep 17 00:00:00 2001 From: Gregoire Parant Date: Sat, 29 Jan 2022 14:05:05 +0100 Subject: [PATCH] Fix redirect error after invalid token Signed-off-by: Gregoire Parant --- front/src/Connexion/ConnectionManager.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/front/src/Connexion/ConnectionManager.ts b/front/src/Connexion/ConnectionManager.ts index e521806e..05d0255d 100644 --- a/front/src/Connexion/ConnectionManager.ts +++ b/front/src/Connexion/ConnectionManager.ts @@ -183,14 +183,14 @@ class ConnectionManager { window.location.hash; } + //Set last room visited! (connected or nor, must to be saved in localstorage and cache API) + //use href to keep # value + await localUserStore.setLastRoomUrl(new URL(roomPath).href); + //get detail map for anonymous login and set texture in local storage //before set token of user we must load room and all information. For example the mandatory authentication could be require on current room this._currentRoom = await Room.createRoom(new URL(roomPath)); - //Set last room visited! (connected or nor, must to be saved in localstorage and cache API) - //use href to keep # value - await localUserStore.setLastRoomUrl(this._currentRoom.href); - //todo: add here some kind of warning if authToken has expired. if (!this.authToken && !this._currentRoom.authenticationMandatory) { await this.anonymousLogin();