This ticket was generated by AI (to-tickets) from #43.
Parent
#43
What to build
Move the standalone api-key package's logic into the shared auth package, split by concern, while keeping everything working. Pure key generation/hashing helpers go to a dependency-light @reloop/auth/apikey export (no Elysia, no Redis); validation logic becomes available to the middleware layer. Leave the old @reloop/apikey as a thin re-export shim so all current importers keep working untouched — this is the expand step; deletion happens in the contract ticket.
Acceptance criteria
Blocked by
Parent
#43
What to build
Move the standalone api-key package's logic into the shared auth package, split by concern, while keeping everything working. Pure key generation/hashing helpers go to a dependency-light
@reloop/auth/apikeyexport (no Elysia, no Redis); validation logic becomes available to the middleware layer. Leave the old@reloop/apikeyas a thin re-export shim so all current importers keep working untouched — this is the expand step; deletion happens in the contract ticket.Acceptance criteria
@reloop/auth/apikeyexports the generation/hashing helpers (generate, hash, key-start, prefix) with no Elysia/Redis dependency@reloop/apikeyremains as a thin re-export shim; every existing importer still builds green without changesBlocked by