Skip to content

How to use useStorage hooks with SecureStorage?#34

Description

@dimadolgopolovn

I have tried every combination of the lines below in popup.tsx.

const secureStorage = new SecureStorage({ copiedKeyList: ["shield-modulation"], area: "local" })
secureStorage.setPassword(MY_PASSWORD)

const [PROFILE_LIBRARY] = useStorage({ key: REMOTE_COOKIES_COLLECTION, instance: secureStorage })

background.ts:

const secureStorage = new SecureStorage({ copiedKeyList: ["shield-modulation"], area: "local" })
secureStorage.setPassword(MY_PASSWORD)
secureStorage.set(...)

How to get the same storage data in background.ts and popup.tsx with SecureStorage?
It works with regular Storage. Documentation on SecureStorage is missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions