- In a clean folder, copy connect.ts and recover.ts
- Set a password in connect.ts
- Run
tsx connect.ts
and let it run. It'll hang at the sync, let it sit for a 10 sec or so then kill it. - Copy the recovery phrase that prints out, and make note of the did identities it created.
- Delete the
DATA
folder, paste the recovery phrase intorecover.ts
and runtsx recover.ts
Note
You'll need to checkout this branch on our repo and build locally: https://github.com/FormFree/web5-js/tree/api/web5-recover
Then you'll need to start a new npm project and run npm install /path/to/FormFree/web5-js/clone/api/web5-recover/branch