Skip to content

Commit

Permalink
fix(w3up-client): authorize agent to use space (#115)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
fforbeck authored Dec 20, 2024
1 parent 54cc5a6 commit 3719670
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/w3up-client/src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,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)
}
Expand Down

0 comments on commit 3719670

Please sign in to comment.