diff --git a/src/actions/index.js b/src/actions/index.js index 108b5cc..41ab73a 100644 --- a/src/actions/index.js +++ b/src/actions/index.js @@ -20,15 +20,15 @@ export const fetchUserProfile = (user) => async (dispatch) => { }; export const userLogin = (username, password) => async (dispatch) => { - const response = await sudoscientist.post('/auth/signin', { + const response = await sudoscientist.post('/auth/signin',{ username: username, password: password - } - ) + }) if (response.status === 401) { dispatch({ type: 'USER_LOGIN', payload: null }) } if (response.status === 200) { + console.log(document.cookie) dispatch({ type: 'USER_LOGIN', payload: response }) } };