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

Method getWhitelistCode

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

The persisted WhatsApp code, or null if one hasn't been generated yet.

()

Source from the content-addressed store, hash-verified

278
279 /** The persisted WhatsApp code, or null if one hasn't been generated yet. */
280 public getWhitelistCode(): string | null { return localStorage.getItem(this.WHITELIST_CODE_KEY); }
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); }

Callers 2

UserInfoCardFunction · 0.80
codeForFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected