airi/server/packages/auth-shared
RainbowBird 69d60cf95f release: v0.15.4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 03:53:10 +07:00
..
src fix(server): match trusted origins by their parsed URL (#3043) 2026-10-19 23:54:52 +08:00
package.json release: v0.15.4 2026-11-13 03:53:10 +07:00
README.md fix(server): match trusted origins by their parsed URL (#3043) 2026-10-19 23:54:52 +08:00
tsconfig.json fix(server): match trusted origins by their parsed URL (#3043) 2026-10-19 23:54:52 +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 and the built-in trusted origin rules.

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.