Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export function signIn(dispatch, email, pass) {
  2.     dispatch({type: "SIGN_IN_REQUEST"});
  3.     return fetch('http://80.211.207.143:5000/login').then(res => res.json(), err => throw err).then(json => {
  4.         dispatch({type: "SIGN_IN_RECEIVE", payload: json});
  5.     })
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement