haxxnz / nzcp-js

A verification library for COVID-19 Vaccine Passes in New Zealand

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option to specify public key directly

noway opened this issue · comments

Production DID document doesn't have the right CORS right now.

const resp = await fetch("https://nzcp.identity.health.nz/.well-known/did.json")
console.log(await resp.text())

This is an issue with MoH DID document - CORS isn't configured for third party consumers.

We need to have a work around which allows specifying a public key directly