From 176dc287b65297b16da81bff32c9d5e5b442e806 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Tue, 1 Oct 2024 10:15:57 +0100 Subject: [PATCH] fix: recommend create account anyway --- problems/1-space-out/problem.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/problems/1-space-out/problem.md b/problems/1-space-out/problem.md index 89a780a..8666eee 100644 --- a/problems/1-space-out/problem.md +++ b/problems/1-space-out/problem.md @@ -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: