Const
Better Auth HTTP 面挂载段(module-tenancy-session-path-match):锚定 auth.implement basePath /${apiPrefix}/v1/auth。AuthSessionReader 廉价旁路据此做完整路径段对齐匹配(勿用子串 includes——会误撞 /authors 等含 auth 子串的业务路由)。
auth.implement
/${apiPrefix}/v1/auth
includes
/authors
auth
Better Auth HTTP 面挂载段(module-tenancy-session-path-match):锚定
auth.implementbasePath/${apiPrefix}/v1/auth。AuthSessionReader 廉价旁路据此做完整路径段对齐匹配(勿用子串includes——会误撞/authors等含auth子串的业务路由)。