axvault 1.9.1 → 1.9.2
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.
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* stays small enough for static complexity checks (FTA).
|
|
6
6
|
*/
|
|
7
7
|
import { isCredentialExpired, isRefreshable, refreshBlob, } from "axauth";
|
|
8
|
-
import { isValidAgentCli, isRefreshableCredentialType, parseCredentials } from "axshared";
|
|
8
|
+
import { isValidAgentCli, isRefreshableCredentialType, parseCredentials, } from "axshared";
|
|
9
9
|
import { getCredential, updateCredentialIfUnchanged, } from "../db/repositories/credentials.js";
|
|
10
10
|
import { logAccess } from "../db/repositories/audit-log.js";
|
|
11
11
|
import { decryptCredential, encryptCredential } from "../lib/encryption.js";
|
|
@@ -15,7 +15,11 @@ function getRefreshPromise(name, blob, agent, provider, refreshTimeoutMs) {
|
|
|
15
15
|
const existing = pendingRefreshes.get(name);
|
|
16
16
|
if (existing)
|
|
17
17
|
return existing;
|
|
18
|
-
const promise = refreshBlob(blob, {
|
|
18
|
+
const promise = refreshBlob(blob, {
|
|
19
|
+
agent,
|
|
20
|
+
provider,
|
|
21
|
+
timeout: refreshTimeoutMs,
|
|
22
|
+
});
|
|
19
23
|
pendingRefreshes.set(name, promise);
|
|
20
24
|
void promise.finally(() => {
|
|
21
25
|
if (pendingRefreshes.get(name) === promise) {
|