SecureStorage with session area name
I am using SecureStorage to store my crypto extension secret. Like this:
export const sessionSecureStorage = new SecureStorage({
area: "session",
})
I am setting the data in the storage when I unlock my wallet and clear it when I lock it.
It works fine, but after 1-2 minutes of keeping my extension open, every .get call returns undefined. Why is that?
Also, looks to work if I remove area: session
0 Replies