1Password / onepassword-sdk-js

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

Fix missing id validation bug #34

Closed AndyTitu closed 3 months ago

AndyTitu commented 3 months ago

Summary

This PR resolves a reported bug of item CRUD where the vault and item ids were not correctly validated and supplying invalid IDs resulted in an unfriendly error.

How to test

Create an item in code (use the example file) and use a vault name instead of a vault id. You should now see a useful message instead of panic: error when retrieving vault metadata.