diff --git a/front/src/Connexion/ConnectionManager.ts b/front/src/Connexion/ConnectionManager.ts index 422f6546..c8c67b77 100644 --- a/front/src/Connexion/ConnectionManager.ts +++ b/front/src/Connexion/ConnectionManager.ts @@ -129,7 +129,7 @@ class ConnectionManager { } urlManager.pushRoomIdToUrl(this._currentRoom); } else if (connexionType === GameConnexionTypes.privateAccessToken) { - const organizationMemberToken = urlManager.getPrivateAccessToken; + const organizationMemberToken = urlManager.privateAccessToken; //clear queryPrivateAccessToken query in window location urlParams.delete(queryPrivateAccessToken); diff --git a/front/src/Url/UrlManager.ts b/front/src/Url/UrlManager.ts index f1283f70..5ab6ba21 100644 --- a/front/src/Url/UrlManager.ts +++ b/front/src/Url/UrlManager.ts @@ -40,7 +40,7 @@ class UrlManager { /** * @return string */ - get getPrivateAccessToken(): string | null { + get privateAccessToken(): string | null { const urlParams = new URLSearchParams(window.location.search.toString()); return urlParams.get(queryPrivateAccessToken); }