From c07978ca18a6d91ad036a31852b84936f3fa653e Mon Sep 17 00:00:00 2001 From: TheoLechemia Date: Mon, 11 Sep 2023 11:19:35 +0200 Subject: [PATCH] use regular usershub auth module logout #2682 --- frontend/src/app/components/auth/auth.service.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/app/components/auth/auth.service.ts b/frontend/src/app/components/auth/auth.service.ts index c51ca3ed30..92e49f00d2 100644 --- a/frontend/src/app/components/auth/auth.service.ts +++ b/frontend/src/app/components/auth/auth.service.ts @@ -128,7 +128,6 @@ export class AuthService { } logout() { - this.deleteAllCookies(); this.cleanLocalStorage(); this.cruvedService.clearCruved(); @@ -139,7 +138,7 @@ export class AuthService { // call the logout route to delete the session // TODO: in case of different cruved user in DEPOBIO context must run this routes // but actually make bug the INPN CAS deconnexion - this._http.get(`${this.config.API_ENDPOINT}/gn_auth/logout_cruved`).subscribe(() => { + this._http.get(`${this.config.API_ENDPOINT}/auth/logout`).subscribe(() => { location.reload(); }); // refresh the page to refresh all the shared service to avoid cruved conflict