From 04bd415f4412f0a00764f95c5416c91abab14864 Mon Sep 17 00:00:00 2001 From: Felipe Forbeck Date: Fri, 20 Dec 2024 08:46:49 -0300 Subject: [PATCH] fix(w3up-client): authorize agent to use space --- packages/w3up-client/src/client.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/w3up-client/src/client.js b/packages/w3up-client/src/client.js index f19dc452b..5ea9e0b73 100644 --- a/packages/w3up-client/src/client.js +++ b/packages/w3up-client/src/client.js @@ -572,6 +572,9 @@ export const authorizeContentServe = async ( ) => { const currentSpace = client.currentSpace() try { + // Save the space to authorize the client to use the space + await space.save() + // Set the current space to the space we are authorizing the gateway for, otherwise the delegation will fail await client.setCurrentSpace(space.did())