mirror of
https://github.com/hanzoai/mobile.git
synced 2026-10-30 14:53:17 +00:00
15 lines
416 B
TypeScript
15 lines
416 B
TypeScript
// In-memory expo-secure-store: exactly the three calls lib/store makes.
|
|
const held = new Map<string, string>()
|
|
|
|
export async function getItemAsync(key: string): Promise<string | null> {
|
|
return held.get(key) ?? null
|
|
}
|
|
|
|
export async function setItemAsync(key: string, value: string): Promise<void> {
|
|
held.set(key, value)
|
|
}
|
|
|
|
export async function deleteItemAsync(key: string): Promise<void> {
|
|
held.delete(key)
|
|
}
|