diff --git a/packages/w3up-client/src/client.js b/packages/w3up-client/src/client.js index 31874e64c..2916f2b36 100644 --- a/packages/w3up-client/src/client.js +++ b/packages/w3up-client/src/client.js @@ -265,6 +265,7 @@ export class Client extends Base { * * @typedef {object} SpaceCreateOptions * @property {Account.Account} [account] - The account configured as the recovery account for the space. + * @property {import('@ipld/dag-ucan').DID<'web'>} [provider] - The provider to use for the space. * @property {Array} [authorizeGatewayServices] - The DID Key or DID Web of the Gateway to authorize to serve content from the created space. * @property {boolean} [skipGatewayAuthorization] - Whether to skip the Gateway authorization. It means that the content of the space will not be served by any Gateway. * @@ -332,6 +333,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) }