MCPcopy Create free account
hub / github.com/chavyleung/scripts / loginapp

Function loginapp

sfexpress/sfexpress.js:17–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 .finally(() => $.done())
16
17function loginapp() {
18 const loginOpts = $.getjson($.KEY_login)
19 delete loginOpts.headers.Cookie
20
21 return $.http
22 .post(loginOpts)
23 .then((resp) => {
24 $.login = JSON.parse(resp.body)
25 })
26 .catch((err) => {
27 console.log(err)
28 })
29}
30
31function loginweb() {
32 const sign = encodeURIComponent($.login.obj.sign)

Callers 1

sfexpress.jsFile · 0.70

Calls 3

getjsonMethod · 0.45
postMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected