Ignacio Bona Piedrabuena 89c78551cc
1604086049622-ui-sync (#1981)
Co-authored-by: Ignacio Bona <ibonapiedrabuena@linkedin.com>
2020-11-09 12:17:51 -08:00

9 lines
274 B
TypeScript

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