diff --git a/libloki/api.js b/libloki/api.js index e94f280cb..f297d435a 100644 --- a/libloki/api.js +++ b/libloki/api.js @@ -77,16 +77,10 @@ secondaryDevicePubKey, requestSignature, grantSignature, - type, }) { - if ( - !primaryDevicePubKey || - !secondaryDevicePubKey || - !requestSignature || - typeof type !== 'number' - ) { + if (!primaryDevicePubKey || !secondaryDevicePubKey || !requestSignature) { throw new Error( - 'createPairingAuthorisationProtoMessage: pubkeys or type is not set' + 'createPairingAuthorisationProtoMessage: pubkeys missing' ); } if (requestSignature.constructor !== ArrayBuffer) { @@ -104,7 +98,6 @@ grantSignature: grantSignature ? new Uint8Array(grantSignature) : null, primaryDevicePubKey, secondaryDevicePubKey, - type, }); } // Serialise as ...