Logout via AJAX

This commit is contained in:
2019-12-13 13:30:33 +01:00
parent 860ee438fc
commit 33a0c7850a
4 changed files with 30 additions and 8 deletions

View File

@ -1,5 +1,7 @@
export const LOGOUT = "LOGOUT";
export const LOGOUT_REQUEST = "LOGOUT_REQUEST";
export const LOGOUT_SUCCESS = "LOGOUT_SUCCESS";
export const LOGOUT_FAILURE = "LOGOUT_FAILURE";
export function logout() {
return { type: LOGOUT };
return { type: LOGOUT_REQUEST };
};