From 519e04cc32f0d3dc6de5979079eb243274b93f15 Mon Sep 17 00:00:00 2001
From: Leonardo <leomilho@gmail.com>
Date: Fri, 1 Nov 2024 13:16:52 +0100
Subject: [PATCH] fix: auth url for logout

---
 apps/web/src/components/navbar/navbar.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/apps/web/src/components/navbar/navbar.tsx b/apps/web/src/components/navbar/navbar.tsx
index 5aa6d09c6..2c8c7baa9 100644
--- a/apps/web/src/components/navbar/navbar.tsx
+++ b/apps/web/src/components/navbar/navbar.tsx
@@ -17,6 +17,8 @@ import { showSharableExploration } from 'config';
 import { Button, useActiveSaveStateAuthorization } from '@graphpolaris/shared';
 import { ManagementTrigger, ManagementViews } from '@graphpolaris/shared/lib/management';
 
+const AuthURL = import.meta.env.GP_AUTH_URL;
+
 export const Navbar = () => {
   const dropdownRef = useRef<HTMLDivElement>(null);
   const auth = useAuthentication();
@@ -86,7 +88,7 @@ export const Navbar = () => {
                   <DropdownItem
                     value="Log out"
                     onClick={() => {
-                      location.replace(`${import.meta.env['GP_AUTH_URL']}/flows/-/default/invalidation/`);
+                      location.replace(`${AuthURL}/flows/-/default/invalidation/`);
                     }}
                   />
                 </>
-- 
GitLab