orbitdb-archive / orbit-db-identity-provider

Default identity provider for OrbitDB
MIT License
31 stars 18 forks source link

Issue with custom identity provider #75

Open githubdoramon opened 2 years ago

githubdoramon commented 2 years ago

Hi,

I am trying to find a way to have an identity that is linked to an Ethereum wallet. I tried the EthereumIdentityProvider, but whenever I connect with the same wallet address, I still get different identities (which makes impossible for a user to access the same app from different devices).

Then I tried to create a custom provider, did the addIdentityProvider, but when I run the createIdentity with the new provider, I consistently get the error "Class constructor Identities cannot be invoked without 'new'". Any idea what am I doing wrong? Or how can I achieve the same result some other way (users being able to connect from multiple devices)?

Also, why isn't the latest version of this package being used in the main orbit-db?

Thanks