airi/server/packages/auth-shared
RainbowBird 5ea7bb1083
Some checks are pending
CI / Lint (push) Waiting to run
CI / Build Test (stage-tamagotchi) (push) Waiting to run
CI / Build Test (stage-tamagotchi-godot) (push) Waiting to run
CI / Build Test (stage-web) (push) Waiting to run
CI / Build Test (ui-loading-screens) (push) Waiting to run
CI / Build Test (ui-transitions) (push) Waiting to run
CI / Unit Test (push) Waiting to run
CI / Type Check (push) Waiting to run
CI / Check Provenance (push) Waiting to run
Cloudflare Pages (Auth UI) / Deploy - ui-server-auth (push) Waiting to run
Cloudflare Workers / Deploy - stage-web (push) Waiting to run
feat(auth): add lastSeenAt field to user schema and tests
2026-08-17 21:57:25 +08:00
..
src feat(auth): add lastSeenAt field to user schema and tests 2026-08-17 21:57:25 +08:00
package.json refactor(server): split independent auth service (#2202) 2026-08-12 23:33:58 +08:00
README.md refactor(server): split independent auth service (#2202) 2026-08-12 23:33:58 +08:00
tsconfig.json refactor(server): split independent auth service (#2202) 2026-08-12 23:33:58 +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.