diff --git a/client/src/components/Header/Header.jsx b/client/src/components/Header/Header.jsx index 443d3a8..fd22e3f 100755 --- a/client/src/components/Header/Header.jsx +++ b/client/src/components/Header/Header.jsx @@ -3,6 +3,7 @@ import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Link } from 'react-router-dom'; import { Button, Icon, Menu } from 'semantic-ui-react'; +import { useAuth } from 'oidc-react'; import { usePopup } from '../../lib/popup'; import Paths from '../../constants/Paths'; @@ -29,6 +30,7 @@ const Header = React.memo( onUserSettingsClick, onLogout, }) => { + const auth = useAuth(); const handleProjectSettingsClick = useCallback(() => { if (canEditProject) { onProjectSettingsClick(); @@ -38,6 +40,11 @@ const Header = React.memo( const NotificationsPopup = usePopup(NotificationsStep, POPUP_PROPS); const UserPopup = usePopup(UserStep, POPUP_PROPS); + const onFullLogout = () => { + auth.signOut(); + onLogout(); + }; + return (