Fetch invocation error when running on non-node client
Running code in a browser/non-node client results in the exception
_Uncaught (in promise) TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation
at indexOP.js:30496
at Generator.next (
I don't believe this implementation will be able to run in browsers, if that's what this issue is intended to highlight.
The only instance of fetch is in the http-resolver which is used externally for full authenticating flows (so larger issues, it should probably be moved into did-typescript-common), but this component is interchangable so a browser compliant window.fetch varient of the exact same code should resolve this in the immediate case.