Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store provision when store already exists #78

Open
genaris opened this issue Jan 20, 2023 · 0 comments
Open

Store provision when store already exists #78

genaris opened this issue Jan 20, 2023 · 0 comments

Comments

@genaris
Copy link
Contributor

genaris commented Jan 20, 2023

My understanding of store provision method is that it works as a constructor, meaning that if the store does already exist the method should throw a "Duplicate" error (unless recreate flag is set).

However, my initial testing through JS wrapper shows that, if called with recreate flag unset, it will:

  • Throw an Encryption error in case the store already exists and the provided passkey is not correct
  • Open the store in case the passkey provided is the same as the existing store

Is this behaviour correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant