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

Method rotateWhitelistCode

app/src/utils/settings.ts:283–283  ·  view source on GitHub ↗

Mints a fresh WhatsApp code and overwrites the stored one, for "rotate to a new contact".

()

Source from the content-addressed store, hash-verified

281
282 /** Mints a fresh WhatsApp code and overwrites the stored one, for "rotate to a new contact". */
283 public rotateWhitelistCode(): string { return this.rotateCode(this.WHITELIST_CODE_KEY); }
284
285 private phoneCodeKey(channel: PhoneChannel): string {
286 return channel === 'sms' ? this.SMS_CODE_KEY : this.WHITELIST_CODE_KEY;

Callers 1

UserInfoCardFunction · 0.80

Calls 1

rotateCodeMethod · 0.95

Tested by

no test coverage detected