openagenticresearch / patch_auth.py
Leon4gr45's picture
Upload folder using huggingface_hub
62ab487 verified
with open("server/src/index.ts", "r") as f:
content = f.read()
content = content.replace("throw new Error(\"authenticated mode requires BETTER_AUTH_SECRET (or PAPERCLIP_AGENT_JWT_SECRET) to be set\");", "config.betterAuthSecret = 'dummy_secret';")
with open("server/src/index.ts", "w") as f:
f.write(content)