mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 14:41:28 -07:00
auth
Auth Worker served at auth.rec.djdevin.net. A Hono app ported from the C#
AuthController. Binding-dependent behavior (EF Core AppDbContext queries) is
stubbed for now — no real KV/D1/DO bindings yet.
Routes
| Method | Path | Description |
|---|---|---|
| GET | /eac/challenge |
EAC challenge, served as text |
| GET | /cachedlogin/forplatformid/:platform/:id |
Cached logins (stubbed → []) |
| POST | /connect/token |
OAuth token endpoint, issues a JWT |
| GET | /role/developer/:id |
Developer role lookup (TODO) |
Notes / TODO
JWTis signed with a placeholder dev secret insrc/jwt.ts. Move to a secret binding before real use./eac/challengecontent is inlined insrc/auth.app.ts(Workers have no filesystem) — replaceEAC_CHALLENGEwith the real challenge text./cachedlogin/...and theRoomInstancecleanup in/connect/tokenneed a DB binding to be implemented./role/developer/:idis a stub, matching the C#// TODO: implement.