NEARBuilders / NEARBuilders/everything-dev

orpc-v2: migrate auth plugin to the new plugin API

Open
#262 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ready-for-agent
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.