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

Method ensureTelegramCode

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

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

()

Source from the content-addressed store, hash-verified

318
319 /** The persisted Telegram code, generating and storing one on first use. */
320 public ensureTelegramCode(): string { return this.ensureCode(this.TELEGRAM_CODE_KEY); }
321
322 /** The persisted Telegram code, or null if one hasn't been generated yet. */
323 public getTelegramCode(): string | null { return localStorage.getItem(this.TELEGRAM_CODE_KEY); }

Callers 1

useTelegramStatusFunction · 0.80

Calls 1

ensureCodeMethod · 0.95

Tested by

no test coverage detected