earthstar-project / earthstar

Storage for private, distributed, offline-first applications.
https://earthstar-project.org
GNU Lesser General Public License v3.0
623 stars 18 forks source link

Auth should be an EventTarget and emit events #341

Open sgwilym opened 1 month ago

sgwilym commented 1 month ago

What's the problem you want solved?

There is no way to observe whether an Auth has added new keypairs or capabilities without being directly responsible for adding those keypairs or capabilities.

Is there a solution you'd like to recommend?

Auth should extend EventTarget and emit events for: