@deephaven-enterprise/auth-nodejs 1.20250219.130-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.
@@ -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
@@ -34,8 +34,8 @@ export type KeyPairCredentials = {
34
34
  declare module '@deephaven-enterprise/jsapi-types' {
35
35
  interface EnterpriseClient {
36
36
  getChallengeNonce(): Promise<{
37
- algorithm: 'SHA256withDSA';
38
37
  nonce: Base64Nonce;
38
+ ipAddress: string;
39
39
  }>;
40
40
  }
41
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deephaven-enterprise/auth-nodejs",
3
- "version": "1.20250219.130-beta",
3
+ "version": "1.20250219.132-beta",
4
4
  "description": "Deephaven Enterprise Auth Utils for NodeJS",
5
5
  "author": "Deephaven Data Labs LLC",
6
6
  "license": "SEE LICENSE IN LICENSE.md",