Skip to content

Instantly share code, notes, and snippets.

@andrewjmead
Last active January 26, 2016 13:01
Show Gist options
  • Save andrewjmead/5b67988c6c742c264f34 to your computer and use it in GitHub Desktop.
Save andrewjmead/5b67988c6c742c264f34 to your computer and use it in GitHub Desktop.
Marcus Post User Example
return fetch(url, {
method: 'post',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
'Auth': localStorage.getItem('token')
},
body: JSON.stringify({
email: userEmail,
password: userPassword,
})
}).then(function (response) {
return response.json()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment