ipfs-shipyard / pm-idm

IDM project management repository
MIT License
63 stars 9 forks source link

Return `currentDevice` boolean in the device object #197

Open dominguesgm opened 5 years ago

dominguesgm commented 5 years ago

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 the keyMaterial.privateKeyPem property (which is only true if the device corresponds to the device in use).

Acceptance Criteria

paulobmarcos commented 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?

paulobmarcos commented 5 years ago

Create a PR for this: https://github.com/ipfs-shipyard/js-idm-wallet/pull/15