NEARBuilders / NEARBuilders/everything-dev
orpc-v2: migrate auth plugin to the new plugin API
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5
- Forks
- 6
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
Ticket ID: B4b
Parent
#248 — orpc-v2: consolidate fork into everything-dev and migrate platform to oRPC v2 + Effect 4 (epic)
What to build
Stage B, step 4b: migrate the auth plugin (SIWN sign-in, ephemeral relayer, organizations, API keys, account management) to the new createPlugin API — Layer-based initialize for its db layer, migrations, and session stores; no context-bridge module. The relayer's ephemeral key recovery must survive the restructure (same keypair recovered across restarts).
Acceptance criteria
- Auth plugin test suite green on the new API
- Sign-in / sign-out / session / API-key regression flows green
- Relayer key recovery verified across restart; relay endpoints functional
Blocked by
- #259 — createPlugin restructure
- #260 — migrate all six contracts to the v2 route builder
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the auth plugin test suite and the createPlugin API after blocked issues #259 and #260 are complete. Trace the SIWN, session, API-key, organization, account-management, and ephemeral-relayer flows, then verify the listed regression flows, relay endpoints, and key recovery across a restart.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- authentication, backend
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100