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

Method phoneCodeKey

app/src/utils/settings.ts:285–287  ·  view source on GitHub ↗
(channel: PhoneChannel)

Source from the content-addressed store, hash-verified

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;
287 }
288
289 /** The persisted SMS or WhatsApp code, generating and storing one on first use. */
290 public ensurePhoneCode(channel: PhoneChannel): string { return this.ensureCode(this.phoneCodeKey(channel)); }

Callers 3

ensurePhoneCodeMethod · 0.95
getPhoneCodeMethod · 0.95
rotatePhoneCodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected