MCPcopy
hub / github.com/leaningtech/webvm / loginUrlCb

Function loginUrlCb

src/lib/network.js:35–50  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

33}
34
35function loginUrlCb(url)
36{
37 try
38 {
39 url = validateLoginUrl(url);
40 }
41 catch(e)
42 {
43 connectionState.set("LOGINFAILED");
44 rejectLogin(e);
45 resetLoginPromise();
46 return;
47 }
48 connectionState.set("LOGINREADY");
49 resolveLogin(url);
50}
51
52function stateUpdateCb(state)
53{

Callers

nothing calls this directly

Calls 3

validateLoginUrlFunction · 0.85
resetLoginPromiseFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected