From 52ceb12e29e04ab76f9863c17542088291685890 Mon Sep 17 00:00:00 2001 From: Felipe Forbeck Date: Fri, 20 Dec 2024 09:42:12 -0300 Subject: [PATCH] fix(w3up-client): authorize agent to use space (#1610) We need to save the space before setting it as the current space, otherwise the authorization flow will fail because the agent won't be allowed to use that space. ![image](https://github.com/user-attachments/assets/97dade05-2efd-4e8d-a7a5-103c833d618c) --- 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 31874e64c..9402c5bdd 100644 --- a/packages/w3up-client/src/client.js +++ b/packages/w3up-client/src/client.js @@ -332,6 +332,9 @@ export class Client extends Base { ] } + // Save the space to authorize the client to use the space + await space.save() + for (const serviceConnection of authorizeGatewayServices) { await authorizeContentServe(this, space, serviceConnection) }