@deephaven-enterprise/auth-nodejs 1.20240723.107-alpha-auth-nodejs.23556 → 1.20240723.107-alpha-auth-nodejs.23557
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/keyPairUtils.d.ts +3 -3
- package/dist/keyPairUtils.js +2 -2
- package/package.json +3 -3
package/dist/keyPairUtils.d.ts
CHANGED
|
@@ -6,13 +6,13 @@ import type { EnterpriseClient, LoginCredentials } from '@deephaven-enterprise/j
|
|
|
6
6
|
*/
|
|
7
7
|
export declare function generateBase64KeyPair(): Base64KeyPair;
|
|
8
8
|
/**
|
|
9
|
-
* Prepend a sentinal value to a
|
|
9
|
+
* Prepend a sentinal value to a Base64 key based on the given type. The
|
|
10
10
|
* sentinel is the uppercase type followed by a colon.
|
|
11
11
|
* @param type Keypair type.
|
|
12
|
-
* @param key Base64 encoded
|
|
12
|
+
* @param key Base64 encoded key.
|
|
13
13
|
* @returns The key with the sentinel prepended.
|
|
14
14
|
*/
|
|
15
|
-
export declare function keyWithSentinel(type: KeyPairType, key: Base64PublicKey): string;
|
|
15
|
+
export declare function keyWithSentinel(type: KeyPairType, key: Base64PublicKey | Base64PrivateKey): string;
|
|
16
16
|
/**
|
|
17
17
|
* Sign a nonce using a private key.
|
|
18
18
|
* @param nonce Base64 encoded nonce.
|
package/dist/keyPairUtils.js
CHANGED
|
@@ -20,10 +20,10 @@ export function generateBase64KeyPair() {
|
|
|
20
20
|
return { type, publicKey, privateKey };
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Prepend a sentinal value to a
|
|
23
|
+
* Prepend a sentinal value to a Base64 key based on the given type. The
|
|
24
24
|
* sentinel is the uppercase type followed by a colon.
|
|
25
25
|
* @param type Keypair type.
|
|
26
|
-
* @param key Base64 encoded
|
|
26
|
+
* @param key Base64 encoded key.
|
|
27
27
|
* @returns The key with the sentinel prepended.
|
|
28
28
|
*/
|
|
29
29
|
export function keyWithSentinel(type, key) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven-enterprise/auth-nodejs",
|
|
3
|
-
"version": "1.20240723.107-alpha-auth-nodejs.
|
|
3
|
+
"version": "1.20240723.107-alpha-auth-nodejs.23557+0dfd0d57f6",
|
|
4
4
|
"description": "Deephaven Enterprise Auth Utils for NodeJS",
|
|
5
5
|
"author": "Deephaven Data Labs LLC",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"build": "tsc --build"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@deephaven-enterprise/jsapi-types": "^1.20240723.107-alpha-auth-nodejs.
|
|
20
|
+
"@deephaven-enterprise/jsapi-types": "^1.20240723.107-alpha-auth-nodejs.23557+0dfd0d57f6",
|
|
21
21
|
"@deephaven/log": "^0.97.0",
|
|
22
22
|
"@deephaven/utils": "^0.97.0"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "0dfd0d57f693ddcf5f47b82e977f7ed43ac6addc"
|
|
28
28
|
}
|