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

Method ensureCode

app/src/utils/settings.ts:266–268  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

264 private readonly TELEGRAM_CODE_KEY = 'observer-ai:settings:telegramCode';
265
266 private ensureCode(key: string): string {
267 return localStorage.getItem(key) ?? this.rotateCode(key);
268 }
269
270 private rotateCode(key: string): string {
271 const code = generateWhitelistCode();

Callers 3

ensureWhitelistCodeMethod · 0.95
ensurePhoneCodeMethod · 0.95
ensureTelegramCodeMethod · 0.95

Calls 1

rotateCodeMethod · 0.95

Tested by

no test coverage detected