@deephaven-enterprise/auth-nodejs 1.20250219.131-beta → 1.20250219.132-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/loginUtils.js +2 -2
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/loginUtils.js
CHANGED
|
@@ -19,8 +19,8 @@ export async function loginClientWithPassword(dheClient, credentials) {
|
|
|
19
19
|
export async function loginClientWithKeyPair(dheClient, credentials) {
|
|
20
20
|
const { username, keyPair, operateAs = username } = credentials;
|
|
21
21
|
const { type, publicKey, privateKey } = keyPair;
|
|
22
|
-
const { nonce } = await dheClient.getChallengeNonce();
|
|
22
|
+
const { nonce, ipAddress } = await dheClient.getChallengeNonce();
|
|
23
23
|
const signedNonce = signWithPrivateKey(nonce, privateKey);
|
|
24
|
-
await dheClient.challengeResponse(signedNonce, keyWithSentinel(type, publicKey), username, operateAs);
|
|
24
|
+
await dheClient.challengeResponse(signedNonce, keyWithSentinel(type, publicKey), username, operateAs, ipAddress);
|
|
25
25
|
return dheClient;
|
|
26
26
|
}
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED