PVermeer / dexie-addon-suite-monorepo

MIT License
8 stars 0 forks source link

[ASK] Implementation on NextJS 12 #29

Closed geeraay closed 1 year ago

geeraay commented 1 year ago

Hi,

Thanks for your effort on building this amazing lib!

I wanted to ask about the following issue in the repo. I have implemented Dexie using Next 12 smoothly, and I would like to add encrypt/decrypt capability using this lib, and it works amazingly. However, when I tried to reload the page, unfortunately an error occurred. The error said that "Could not decrypt message". I have already checked the secret key used, and I see that the key is consistent.
Would appreciate any insights or guidance on this matter. Thank you!

DexieDB.ts image

list-sls.tsx image

getserversideprops on list-sls.tsx image

Error image

PVermeer commented 1 year ago

Judging by your code some things that could have happened:

So delete the DB first and than make sure the same key is always used.

If you still have problems please let me know and, if possible provide, minimum reproduction of the issue.