MCPcopy
hub / github.com/chavyleung/scripts / login

Function login

feng/feng.js:22–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 .finally(() => $.done())
21
22function login() {
23 const loginOpts = $.getjson($.KEY_login)
24 const url = {
25 url: `https://api.wfdata.club/v1/auth/signin`,
26 body: loginOpts['body'],
27 headers: {
28 'X-Request-Id': encrypt(`url=/v1/auth/signin$time=${new Date().getTime()}`),
29 'X-Running-Env': loginOpts['headers']['X-Running-Env']
30 }
31 }
32 return $.http.post(url).then((resp) => {
33 $.login = JSON.parse(resp.body).data
34 })
35}
36
37function sign() {
38 const loginOpts = $.getjson($.KEY_login)

Callers 1

feng.jsFile · 0.70

Calls 3

encryptFunction · 0.70
getjsonMethod · 0.45
postMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…