Files
RainbowBird 7986cc7f69 Merge remote-tracking branch 'origin/main' into server-dev
# Conflicts:
#	.agents/skills/server-gateway-refactor/SKILL.md
#	pnpm-lock.yaml
#	server/apps/api/src/otel/index.ts
#	server/apps/auth/src/auth.ts
#	server/apps/auth/src/steam.test.ts
#	server/apps/auth/src/steam.ts
2026-08-11 13:56:07 +08:00
..

@proj-airi/auth-shared

Neutral authentication contracts shared by the resource API and the standalone auth service.

Use it for

  • The Better Auth-owned PostgreSQL schema.
  • The authenticated principal/session shape exchanged inside server code.
  • Authorization policy that must remain identical in both processes, such as ban expiry handling.

Do not use it for

  • Better Auth runtime construction or HTTP routes.
  • Service environment parsing, database pools, Redis, email, or telemetry.
  • Importing either server/apps/api or server/apps/auth.

Keeping this package free of runtime composition lets both applications depend on the same protocol without depending on each other.