mirror of
https://github.com/openclaw/clawhub.git
synced 2026-08-14 00:47:57 +00:00
* feat: add local dev persona fab * fix: time out stalled dev persona auth * fix: restrict dev persona auth to local deployments * chore: refresh static check dependencies
11 lines
337 B
TypeScript
11 lines
337 B
TypeScript
type DevAuthEnv = {
|
|
CONVEX_DEPLOYMENT?: string;
|
|
DEV_AUTH_ENABLED?: string;
|
|
};
|
|
|
|
export function isLocalDevAuthEnabled(env: DevAuthEnv = process.env) {
|
|
if (env.DEV_AUTH_ENABLED !== "1") return false;
|
|
const deployment = env.CONVEX_DEPLOYMENT ?? "";
|
|
return deployment.startsWith("local:") || deployment.startsWith("anonymous:");
|
|
}
|