credential-handler / credential-handler-polyfill

Credential Handler API polyfill
https://chapi.io
BSD 3-Clause "New" or "Revised" License
36 stars 13 forks source link

Add an example of "wallet-worker.html" #25

Closed OR13 closed 2 years ago

OR13 commented 2 years ago

README provides this example:

{
  "icons": [
    {
      "sizes": "48x48 64x64",
      "src": "demo-wallet.png",
      "type": "image/png"
    }
  ],
  "name": "Demo Wallet",
  "short_name": "Demo Wallet",
  "credential_handler": {
    "url": "/wallet-worker.html",
    "enabledTypes": ["VerifiablePresentation"]
  }
}

But no html for wallet-worker is available in repo.

dlongley commented 2 years ago

+1, we should link to: https://github.com/credential-handler/chapi-demo-wallet/blob/master/wallet-worker.html

dlongley commented 2 years ago

We need to (somehow) generally better link up the README here with the documentation and examples from chapi.io.

dlongley commented 2 years ago

I've added the link above to the README, but we can still improve with better explanations and examples (again, this needs appropriate coordination with chapi.io).

OR13 commented 2 years ago

I'm trying to work through a nextjs / typescript wallet example, I will share the react / server side rendering issues here... but so far so good.

oznfc commented 2 years ago

Any progress or examples?

dlongley commented 2 years ago

The README has been updated to link to chapi.io which gives a much better introduction to CHAPI along with demos, examples, and a playground. Those examples include an example worker html file. I'm going to close this on that basis.