@@ -112,8 +112,17 @@ export async function createConnectionInvite(opts = {}) {
|
||||
await vault.add(PKG_KEY, packageValue)
|
||||
|
||||
// Always readOnly: invitees only need to read peardock:pkg (public key + capability).
|
||||
// Writable invites hang in autopass@3 when the pairer awaits deleteInvite / writable.
|
||||
// Writable invites hang in autopass@3 (deleteInvite / _whenWritable).
|
||||
// Role elevation is entirely via the HMAC capability, not Autopass write rights.
|
||||
// Ensure vault is fully ready + swarm/pairing member is up before issuing invite.
|
||||
if (vault.opened === false) await vault.ready()
|
||||
if (vault.member) {
|
||||
try {
|
||||
await vault.member.flushed()
|
||||
} catch {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
const invite = await vault.createInvite({ readOnly: true })
|
||||
|
||||
lastInviteMeta = {
|
||||
|
||||
Reference in New Issue
Block a user