Spaces:
Running
Running
| // Auth — community edition. This build is single-user and login-free: every request is the one local | |
| // "dev_user". No Clerk, no sessions, no login wall. (The paid/multi-tenant build swapped in Clerk here.) | |
| export const DEV_USER = "dev_user"; | |
| // auth is never "enabled" in the community edition | |
| export const clerkEnabled = () => false; | |
| // pass-through: nothing to attach | |
| export function attachAuth(req, res, next) { return next(); } | |
| // every request is the single local user | |
| export function requireAuth(req, res, next) { req.userId = DEV_USER; return next(); } | |