Skip to content

assertStoragePermissionForAnalytics

const assertStoragePermissionForAnalytics: (manifest) => void = assertStoragePermission

Defined in: index.ts:101

@extport/sdk (both licensing and analytics) persists state in browser.storage.local and requires the storage permission. A hand-rolled IndexedDB open (the idb-keyval fallback used when storage isn’t declared) has more that can go wrong at creation time and is vulnerable to eviction / Safari dynamic-origin resets — confirmed against real incidents (corrupted keyval-store breaking analytics installId; extension updates wiping IDB license state). Throws rather than warns: a warning that’s easy to ignore is how this shipped silently the first time.

Record<string, unknown>

void