spee.ch/client/src/api/authApi.js
2018-05-22 19:06:37 -07:00

13 lines
328 B
JavaScript

import Request from '../utils/request';
export function checkForLoggedInChannelApi () {
const url = `/user`;
const params = {credentials: 'include'};
return Request(url, params);
}
export function channelLogoutApi () {
const url = `/logout`;
const params = {credentials: 'include'};
return Request(url, params);
}