1Password / onepassword-sdk-js

The official JavaScript SDK for 1Password
https://developer.1password.com/docs/sdks/
MIT License
41 stars 2 forks source link

Add WASM binary and interaction with JS #6

Closed AndyTitu closed 7 months ago

AndyTitu commented 7 months ago

This PR adds the WASM core wrapped by wasm-bindgen generated functions.

This PR also integrates calling the WASM logic into the user facing JS code

How to test

You should be able to see the secret you configured the secret reference for in-line in the examples code.

Marton6 commented 7 months ago

✅ Did a manual test as described in the PR description and the code works well! We can also test it from multiple worker threads, but let's do that as a follow-up as it is not strictly needed for the first version of this SDK.

Marton6 commented 7 months ago

Also tested that the finalizer gets invoked correctly. Everything works well 👍