mirror of
https://github.com/hanzoai/captable.git
synced 2026-10-16 14:21:29 +00:00
next-auth moves to /v1/iam, tRPC to /v1/trpc and the Hono REST API to /v1/companies, /v1/schema, /v1/swagger and /v1/docs. HIP-0111: no /api/ prefix. The /api copies of the REST handler and docs page, and the empty apiKeys handler, are deleted. next-auth v4 takes its server mount from the path of NEXTAUTH_URL, so env.js refuses anything but <origin>/v1/iam; SessionProvider takes the same AUTH_BASE_PATH. src/routes.test.ts fails if src/app/api returns or any source names an /api/ path, and hanzo.yml runs it before the image. Claude-Session: https://claude.ai/code/session_01TUxvfuta1Z44KVNYuAz71F
8 lines
344 B
TypeScript
8 lines
344 B
TypeScript
export const IS_IAM_ENABLED = true;
|
|
|
|
// Where next-auth is mounted: src/app/v1/iam/[...nextauth]. next-auth v4 takes
|
|
// its server-side mount from the PATH of NEXTAUTH_URL (src/env.js refuses any
|
|
// other path) and its browser-side mount from SessionProvider's basePath, so
|
|
// both read this one value.
|
|
export const AUTH_BASE_PATH = "/v1/iam";
|