Skip to content

Commit

Permalink
fix: recommend create account anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Oct 1, 2024
1 parent 83635c6 commit 176dc28
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions problems/1-space-out/problem.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ await space.provision(access)

// save the space to the client's local storage
await space.save()

// optionally, create an account so you can access the space from another
// device (see below).
//
// click the link in the email, but selecting a payment plan is optional,
// because the coupon is funding your space! \o/
const myAccount = await client.login('your@email')
// create a recovery delegation to your account
const recovery = await space.createRecovery(myAccount.did())
// store the recovery delegation with the w3up service provider
await client.capability.access.delegate({ space: space.did(), delegations: [recovery] })
```

Finally, log the DID of the space, for verification:
Expand Down

0 comments on commit 176dc28

Please sign in to comment.