import { getRequest } from '@datahub/utils/api/fetcher'; const logoutUrl = '/logout'; /** * Calls the logout endpoint to log out the currently logged in user * @return {Promise} */ export const logout = (): Promise => getRequest({ url: logoutUrl });