MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / onLogin

Function onLogin

src/main.js:423–436  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

421}
422
423async function onLogin() {
424 try {
425 const user = await auth.getLoggedInUser();
426 if (!user) return;
427 if (Boolean(user.acode_pro)) {
428 config.HAS_PRO = true;
429 }
430 if (config.HAS_PRO) {
431 hideAd(true);
432 }
433 } catch (error) {
434 console.error(error);
435 }
436}
437
438async function fetchPromotions() {
439 try {

Callers

nothing calls this directly

Calls 3

hideAdFunction · 0.90
getLoggedInUserMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected