MCPcopy
hub / github.com/kenberkeley/react-demo / login

Method login

src/services/userService.js:16–22  ·  view source on GitHub ↗

* @param {Object} userData * @return {Promise}

(userData)

Source from the content-addressed store, hash-verified

14 * @return {Promise}
15 */
16 login (userData) {
17 return xhr({
18 method: 'post',
19 url: '/login',
20 body: userData
21 })
22 }
23
24 logout () {
25 return xhr({ url: '/logout' })

Callers 2

handleSubmitMethod · 0.80
loginFunction · 0.80

Calls 1

xhrFunction · 0.85

Tested by

no test coverage detected