automerge-repo auth spec
✓ Published0🌍 Public
HHerbCaudill
Last edited Mar 31, 2023
Created on Feb 28, 2023
This example shows the authentication and sharing workflow for Automerge Repo, a local-first collaboration framework, using the `@localfirst/auth` library. It demonstrates how to configure a `LocalFirstAuthProvider` with user and device credentials, create and join shares, invite members and devices, and manage document permissions. The code uses TypeScript APIs like `createUser`, `createDevice`, `inviteMember`, and `addDocuments`, with invitations relying on seeds, usage limits, and expiration timestamps. The documentation is rendered as a pseudocode specification, not a live visualization, but it concretely maps each method call to its parameters and return values.
AI-generated description