Moeeldouma's picture
Deploy Eldouma Graphics — Docker Space, bring-your-own-key demo
39d98a0 verified
Raw
History Blame Contribute Delete
568 Bytes
// 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(); }