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

Feat/errors helpers pkh eth #156

Merged
merged 3 commits into from
Jun 13, 2023
Merged

Feat/errors helpers pkh eth #156

merged 3 commits into from
Jun 13, 2023

Conversation

zachferland
Copy link
Contributor

@zachferland zachferland commented Jun 13, 2023

Two small things

  • explicit error when no app name, some people have seen this when in node and switching from web -> node auth, assuming api is same
  • helper method to get accountid from did

reminded need to add tests in most of these libraries still

@zachferland zachferland force-pushed the feat/errors-helpers-pkh-eth branch 3 times, most recently from e293f23 to b5370c1 Compare June 13, 2023 20:37
import { DIDSession, getAccountIdByDID } from 'did-session'
import { EthereumWebAuth } from '@didtools/pkh-ethereum'

const ethProvider = // import/get your web3 eth provider
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth mentioning https://eips.ethereum.org/EIPS/eip-1193 somewhere in our docs to be extra clear.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah ill add that to the did-session and eth-pkh docs, thanks!

@zachferland zachferland merged commit d36caf2 into main Jun 13, 2023
13 checks passed
@zachferland zachferland deleted the feat/errors-helpers-pkh-eth branch June 13, 2023 22:00
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

Successfully merging this pull request may close these issues.

None yet

2 participants