Skip to content
Snippets Groups Projects
Commit 519e04cc authored by Leonardo's avatar Leonardo
Browse files

fix: auth url for logout

parent 3aedbc19
No related branches found
No related tags found
No related merge requests found
Pipeline #140713 passed
......@@ -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/`);
}}
/>
</>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment