MCPcopy Create free account
hub / github.com/Roy3838/Observer / generateWhitelistCode

Function generateWhitelistCode

app/src/utils/whitelistCode.ts:50–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48
49/** A stable, human-typeable whitelist code, e.g. "tree-book-shower-golden". */
50export function generateWhitelistCode(): string {
51 const words = Array.from({ length: 4 }, () => WORDLIST[randomIndex(WORDLIST.length)]);
52 return words.join('-');
53}
54
55/**
56 * The two ways to pair a phone, each its own opt-in with its own code: texting the code to

Callers 1

rotateCodeMethod · 0.90

Calls 1

randomIndexFunction · 0.85

Tested by

no test coverage detected