-
Notifications
You must be signed in to change notification settings - Fork 14
Migrate frontpage identity operations to use atcute #310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR migrates identity operations from custom implementation to the atcute library, replacing homebrew handle/DID resolution code with @atcute/identity and @atcute/identity-resolver packages. This migration prepares the codebase for future did:web support by enabling the use of atcute's hybrid DID resolver.
Key Changes:
- Replaced custom DNS and HTTP handle resolution with atcute's
CompositeHandleResolver - Migrated DID document fetching from manual PLC directory calls to atcute's
PlcDidDocumentResolver - Centralized User-Agent string into a constant and updated its value
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| pnpm-workspace.yaml | Added atcute packages to catalog with version constraints |
| pnpm-lock.yaml | Updated lockfile with atcute dependencies and transitive dependencies |
| packages/frontpage/package.json | Added @atcute/identity and @atcute/identity-resolver dependencies |
| packages/frontpage/lib/data/atproto/identity.ts | Replaced custom handle resolution with atcute's CompositeHandleResolver |
| packages/frontpage/lib/data/atproto/did.ts | Migrated DID document resolution to atcute's PlcDidDocumentResolver, narrowed DID type |
| packages/frontpage/lib/constants.ts | Added FRONTPAGE_APPVIEW_USER_AGENT constant |
| packages/frontpage/lib/auth.ts | Updated to use centralized User-Agent constant |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
This replaces our homebrew handle/did resolution code, it shouldn't change the behaviour at all.
It makes it easier for us to support did:webs in a followup PR because we can just swap plc resolver for the hybrid did:plc/did:web one.
To unblock did:web support we need to figure out did:web deletion, see https://bsky.app/profile/did:plc:2xau7wbgdq4phuou2ypwuen7/post/3mab3ukanu226