MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / getUserId

Function getUserId

scripts/helpers/utils.js:80–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78}
79
80export async function getUserId() {
81 if (!CACHED.userID) {
82 CACHED.userID = await Storage.get("userId");
83 }
84 if (!CACHED.userID) {
85 await setUserId();
86 }
87 return CACHED.userID;
88}
89
90export function waitForTabToLoad(tabId) {
91 return new Promise((resolve) => {

Callers 1

trackEventFunction · 0.85

Calls 2

setUserIdFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected