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

Method ensureWhitelistCode

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

The persisted WhatsApp code, generating and storing one on first use.

()

Source from the content-addressed store, hash-verified

275
276 /** The persisted WhatsApp code, generating and storing one on first use. */
277 public ensureWhitelistCode(): string { return this.ensureCode(this.WHITELIST_CODE_KEY); }
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); }

Callers 1

UserInfoCardFunction · 0.80

Calls 1

ensureCodeMethod · 0.95

Tested by

no test coverage detected