assertStoragePermission
assertStoragePermission(
manifest):void
Defined in: index.ts:91
@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.
Parameters
Section titled “Parameters”manifest
Section titled “manifest”Record<string, unknown>
Returns
Section titled “Returns”void