Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export function signIn(dispatch, email, pass) {
- dispatch({type: "SIGN_IN_REQUEST"});
- return fetch('http://80.211.207.143:5000/login').then(res => res.json(), err => throw err).then(json => {
- dispatch({type: "SIGN_IN_RECEIVE", payload: json});
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement