UNPKG

@shopify/shopify-app-session-storage-kv

Version:
16 lines 702 B
import { Session } from '@shopify/shopify-api'; import { SessionStorage } from '@shopify/shopify-app-session-storage'; export declare class KVSessionStorage implements SessionStorage { private namespace; constructor(namespace?: KVNamespace | undefined); setNamespace(namespace: KVNamespace): void; storeSession(session: Session): Promise<boolean>; loadSession(id: string): Promise<Session | undefined>; deleteSession(id: string): Promise<boolean>; deleteSessions(ids: string[]): Promise<boolean>; findSessionsByShop(shop: string): Promise<Session[]>; private getShopSessionIdsKey; private addShopIds; private removeShopIds; } //# sourceMappingURL=kv.d.ts.map