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

Method rotatePhoneCode

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

Mints a fresh SMS or WhatsApp code and overwrites the stored one.

(channel: PhoneChannel)

Source from the content-addressed store, hash-verified

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)); }
297
298 /**
299 * Which pairing a phone tool's code needs: sendSms pairs by SMS, sendWhatsapp on WhatsApp,

Callers 2

PhoneSetupFunction · 0.80
UserInfoCardFunction · 0.80

Calls 2

rotateCodeMethod · 0.95
phoneCodeKeyMethod · 0.95

Tested by

no test coverage detected