BackgroundSafeSecureStore
A small storage adapter for values needed by a background relaunch.
The SDK deliberately does not own authentication or choose an app key. The host supplies a SecureStore-compatible implementation and may use this adapter for a session token, refresh token, or any other background-safe value.
Kind: Interface
Package: @ovok/native
Import
import { BackgroundSafeSecureStore } from '@ovok/native/background-sync';
TypeScript shape
interface BackgroundSafeSecureStore {
getItemAsync: (key: string, options?: Record<string, unknown>) => Promise<string | null>;
setItemAsync: (key: string, value: string, options?: Record<string, unknown>) => Promise<void>;
deleteItemAsync?: (key: string, options?: Record<string, unknown>) => Promise<void>;
}
This is a type-level export; it has no call parameters.
Public members
| Member | Type | Details |
|---|---|---|
getItemAsync | (key: string, options?: Record<string, unknown>): Promise<string | null> | — |
setItemAsync | (key: string, value: string, options?: Record<string, unknown>): Promise<void> | — |
deleteItemAsync | (key: string, options?: Record<string, unknown>) => Promise<void> | Optional. — |
Learn the workflow
Continue with Background Sync for the workflow context and examples.