Uncaught (in promise) SyntaxError: “undefined” is not valid JSON
at JSON.parse ()
at _callee$ (threeIdConnect.ts:57:1)
at tryCatch (runtime.js:63:1)
at Generator.invoke [as _invoke] (runtime.js:293:1)
at Generator.next (runtime.js:118:1)
at asyncGeneratorStep (index.ts:153:1)
at _next (index.ts:153:1)
I desperately need some help, this must work for a final project at my faculty. Thank you in advance for your help.
Looks like you’re trying to use 3ID as our DID provider, which is deprecated and not recommended for use anymore. Can you try using did:pkh with the did-session library instead? DID Session - Ceramic Developers
Hello Spencer, thank you for such a quick reply. I have been working on the transformation of 3ID provider into did/pkh-ethereum and did-session.
I am not sure which ethProvider to use though. I have googled a lot and nothing seems to work well. Any recomendation?
Could you please take another look at the App.js?
I am also having issues to execute this:
const client = new
const resources = client.resources
Do you have any example of a code implementing the Ceramic DID to create and read DID on ethereum with metamask?
did-session requires an ether provider that can sign, for example the window.ethereum injected by most wallets (ie metamask), an eth rpc provider just connected to a gateway is only for reading on chain data, you wont be able to create any signatures
idx libraries are deprecated as well, and should only composedb to read and write data (ie profiles, etc)