@cef-ai/widget-runtime 2.1.0 → 2.1.1

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/entry.js CHANGED
@@ -122,7 +122,13 @@ function boot() {
122
122
  // the same `chainUrl`, since this `ensure({ onboard: false })` runs
123
123
  // the vault-delegate grant step too.
124
124
  const sdk = new VaultSDK(toVaultSdkConfig(manifest.endpoints, vaultSdkSigner, id.token));
125
- const ensuredVault = await sdk.vault.ensure({ onboard: false });
125
+ // With a token that SDK has no signer, and `ensure()` does not read
126
+ // `auth`: it needs the token handed to it, or it throws before the
127
+ // first chunk. Without one the key stays absent so the signer path runs.
128
+ const ensuredVault = await sdk.vault.ensure({
129
+ onboard: false,
130
+ ...(id.token ? { delegationToken: id.token } : {}),
131
+ });
126
132
  return createVaultObjectUploader({ objects: ensuredVault.scope(manifest.scope).objects });
127
133
  })().catch((err) => { uploaderP = null; throw err; });
128
134
  return uploaderP;