feat: enforce device-bound connect challenge
This commit is contained in:
1 parent
121ae6036b
commit
dfbf6ac263
21 files changed
+953
-129
No files matched your search
@@ -279,6 +279,7 @@ export async function connectReq(
|
||||
publicKey: string;
|
||||
signature: string;
|
||||
signedAt: number;
|
||||
nonce?: string;
|
||||
};
|
||||
},
|
||||
): Promise<ConnectResponse> {
|
||||
@@ -310,6 +311,7 @@ export async function connectReq(
|
||||
publicKey: publicKeyRawBase64UrlFromPem(identity.publicKeyPem),
|
||||
signature: signDevicePayload(identity.privateKeyPem, payload),
|
||||
signedAt: signedAtMs,
|
||||
nonce: opts?.device?.nonce,
|
||||
};
|
||||
})();
|
||||
ws.send(
|
||||
|
||||
Reference in new issue
Block a user