Open dominguesgm opened 5 years ago
We currently have a method that returns the current device: identity.devices.getCurrent()
Should we still have the boolean available for the ease things a bit more?
Create a PR for this: https://github.com/ipfs-shipyard/js-idm-wallet/pull/15
Description
Return a
currentDevice
boolean in the device object, or another variable to the same effect, in order to avoid having to check if the device has thekeyMaterial.privateKeyPem
property (which is only true if the device corresponds to the device in use).Acceptance Criteria
currentDevice
boolean property.