@dotrino/identity 0.89.0 → 0.89.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/package.json +1 -1
- package/vault/core.js +6 -1
package/package.json
CHANGED
package/vault/core.js
CHANGED
|
@@ -687,7 +687,12 @@ export async function createIdentityCore ({ kv: rawKv, peers, makeSync = null, k
|
|
|
687
687
|
if (!v?.cert) throw Object.assign(new Error('that profile is not paired with a vault'), { code: 'not-paired' })
|
|
688
688
|
if (!(v.cert.scope || []).includes('vault:approve')) throw Object.assign(new Error('that profile does not approve requests'), { code: 'no-approve' })
|
|
689
689
|
const device = await signerForProfile(pid)
|
|
690
|
-
|
|
690
|
+
const r = await remoteApproval({ master: v.master, proxy: v.proxy, device, cert: v.cert, op, id })
|
|
691
|
+
// Y EL COMANDO SE ABRE TAMBIÉN AQUÍ, con la llave de ESA cuenta. Sin esto los pedidos de
|
|
692
|
+
// las demás cuentas se veían sin comando —el dato por el que se mira la pantalla— y el
|
|
693
|
+
// fallo era mudo: llegaban con su sobre cerrado y nadie lo abría.
|
|
694
|
+
if (Array.isArray(r?.items)) return { ...r, items: await abrirContextos(r.items, pid) }
|
|
695
|
+
return r
|
|
691
696
|
}
|
|
692
697
|
|
|
693
698
|
/** Id estable y corto de una llave de cifrado: con esto se indexan las envolturas. */
|