()
| 48 | |
| 49 | /** A stable, human-typeable whitelist code, e.g. "tree-book-shower-golden". */ |
| 50 | export 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 |
no test coverage detected