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

Method rotateCode

app/src/utils/settings.ts:270–274  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

268 }
269
270 private rotateCode(key: string): string {
271 const code = generateWhitelistCode();
272 localStorage.setItem(key, code);
273 return code;
274 }
275
276 /** The persisted WhatsApp code, generating and storing one on first use. */
277 public ensureWhitelistCode(): string { return this.ensureCode(this.WHITELIST_CODE_KEY); }

Callers 4

ensureCodeMethod · 0.95
rotateWhitelistCodeMethod · 0.95
rotatePhoneCodeMethod · 0.95
rotateTelegramCodeMethod · 0.95

Calls 1

generateWhitelistCodeFunction · 0.90

Tested by

no test coverage detected