UNPKG

@authduo/authduo

Version:

Free User-sovereign Authentication for the World

15 lines 467 B
import { signal } from "@benev/slate"; export class StoragePersistence { persisted = signal(false); async check() { const persisted = await navigator.storage.persisted(); this.persisted.value = persisted; return persisted; } async request() { const persisted = await navigator.storage.persist(); this.persisted.value = persisted; return persisted; } } //# sourceMappingURL=storage-persistence.js.map