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

Client v1.7.9 connect returns JWK's error #290

Open
donskov opened this issue Mar 25, 2024 · 0 comments
Open

Client v1.7.9 connect returns JWK's error #290

donskov opened this issue Mar 25, 2024 · 0 comments
Labels

Comments

@donskov
Copy link
Collaborator

donskov commented Mar 25, 2024

Dependencies:

"@webcrypto-local/client": "1.7.9",
"protobufjs": "7.2.6"

Code example:

import "protobufjs/dist/protobuf.js";
import "@webcrypto-local/client/build/webcrypto-socket.mjs";

const connect = async () => {
  const storage = await WebcryptoSocket.BrowserStorage.create();

  const server = new WebcryptoSocket.SocketProvider({
    storage,
  })
    .connect("127.0.0.1:31337")
    .on("error", (error) => {
      console.log(error);
    });
};

connect();

Live example:
https://codesandbox.io/p/sandbox/wl-1-7-9-rcdtxh?file=%2Fsrc%2Findex.js%3A1%2C37

@donskov donskov added the bug label Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant