-
Notifications
You must be signed in to change notification settings - Fork 5
chore: move eCurrency #471
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
|
Caution Review failedThe pull request is closed. WalkthroughAdds a new eCurrency platform: a TypeScript Node/Express API (TypeORM + PostgreSQL, JWT, SSE auth, web3 adapter, controllers/services/migrations) and a React + Vite frontend (auth, balances, transfers, currency UIs, Tailwind tooling and build configs). Changes
Sequence Diagram(s)sequenceDiagram
participant Client (Browser)
participant Frontend App
participant Server (AuthController)
participant DB (Postgres/User repo)
participant EventEmitter
Client->>Frontend App: open /auth -> request /api/auth/offer
Frontend App->>Server: GET /api/auth/offer
Server->>DB: (optional) generate sessionId, persist session metadata
Server-->>Frontend App: 200 { sessionId, offerUrl, qr }
Frontend App->>Client: render QR / deep link
Note right of Server: SSE subscription endpoint exists
Client->>Server: open EventSource /api/auth/sse?session=...
Server->>EventEmitter: subscribe to session events
Note over EventEmitter,DB: external wallet posts to Server/login (or external flow)
Server->>DB: validate login (find user)
Server->>EventEmitter: emit session event with token+user
EventEmitter-->>Server: deliver event to subscribed SSE connection
Server-->>Client: SSE event: { token, user }
Client->>Frontend App: store token/user and redirect to /dashboard
Estimated code review effort🎯 4 (Complex) | ⏱️ ~75 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (60)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description of change
Issue Number
Type of change
How the change has been tested
Change checklist
Summary by CodeRabbit
New Features
Infrastructure
✏️ Tip: You can customize this high-level summary in your review settings.