mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-20 17:11:17 +00:00
refactor: remove tRPC, use plain Hono routes
Replace tRPC location.update mutation with POST /api/location using Hono route + requireSession middleware. Extract auth types (AuthUser, AuthToken) into auth/session.ts. Inject sessionManager via Hono context local to location handlers. Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
4
apps/aris-backend/src/auth/session.ts
Normal file
4
apps/aris-backend/src/auth/session.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import type { auth } from "./index.ts"
|
||||
|
||||
export type AuthUser = typeof auth.$Infer.Session.user
|
||||
export type AuthSession = typeof auth.$Infer.Session.session
|
||||
Reference in New Issue
Block a user