evOo-local/apps/mobile/lib/last-bot.ts
cynarAI 6c7eed7580 Initial clean evOo-local from f00577b
Fresh history cut from cynarAI/evoo antigravity-handoff/project-timeline
(Voice First + project timeline). Brand docs/titles as evOo; keep @rakazo/*
packages as tech debt. Excludes node_modules, caches, secrets, voice blobs.
2026-09-20 17:15:16 +02:00

17 lines
381 B
TypeScript

import * as SecureStore from "expo-secure-store";
const LAST_BOT_KEY = "rakazo.last_bot_id";
export async function saveLastBotId(botId: string) {
if (!botId.trim()) return;
await SecureStore.setItemAsync(LAST_BOT_KEY, botId);
}
export async function loadLastBotId() {
try {
return (await SecureStore.getItemAsync(LAST_BOT_KEY)) ?? "";
} catch {
return "";
}
}