Skip to content

Commit e5ca584

Browse files
author
Paulo Marcos
committed
feat: add currentDevice property to current device
1 parent ce90f54 commit e5ca584

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/identities/identity/devices.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ export const generateCurrentDevice = async (deviceInfo) => {
148148
createdAt: Date.now(),
149149
updatedAt: Date.now(),
150150
revokedAt: null,
151+
currentDevice: true,
151152
didPublicKeyId: `${DID_PUBLIC_KEY_PREFIX}${id}`,
152153
keyMaterial,
153154
...deviceInfo,

src/identities/identity/utils/constants/devices.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const DEVICE_TYPES = ['phone', 'tablet', 'laptop', 'desktop'];
1111

1212
// Keys in the descriptor that are consired sensitive and must not be replicated
1313
export const DESCRIPTOR_SENSITIVE_KEYS = [
14+
'currentDevice',
1415
'keyMaterial.privateKeyPem',
1516
'keyMaterial.privateKeyBase58',
1617
'keyMaterial.privateExtendedKeyBase58',

0 commit comments

Comments
 (0)