Skip to content

Commit

Permalink
fix(w3up-client): authorize agent to use space
Browse files Browse the repository at this point in the history
  • Loading branch information
fforbeck committed Dec 20, 2024
1 parent 54cc5a6 commit 04bd415
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 @@ -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())

Expand Down

0 comments on commit 04bd415

Please sign in to comment.