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

Method getPhoneCode

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

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

(channel: PhoneChannel)

Source from the content-addressed store, hash-verified

291
292 /** The persisted SMS or WhatsApp code, or null if one hasn't been generated yet. */
293 public getPhoneCode(channel: PhoneChannel): string | null { return localStorage.getItem(this.phoneCodeKey(channel)); }
294
295 /** Mints a fresh SMS or WhatsApp code and overwrites the stored one. */
296 public rotatePhoneCode(channel: PhoneChannel): string { return this.rotateCode(this.phoneCodeKey(channel)); }

Callers 4

pairingChannelForMethod · 0.95
defaultPhoneCodeMethod · 0.95
silentValueFunction · 0.80
UserInfoCardFunction · 0.80

Calls 1

phoneCodeKeyMethod · 0.95

Tested by

no test coverage detected