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

Method getWhitelistCode

app/src/utils/settings.ts:281–281  ·  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

279
280 /** The persisted WhatsApp code, or null if one hasn't been generated yet. */
281 public getWhitelistCode(): string | null { return localStorage.getItem(this.WHITELIST_CODE_KEY); }
282
283 /** Mints a fresh WhatsApp code and overwrites the stored one, for "rotate to a new contact". */
284 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