Back to feed
Dev.to
Dev.to
7/26/2026
SonicJS Auth Gotchas on Cloudflare: Signup, Credentials, and RBAC - Part 3

SonicJS Auth Gotchas on Cloudflare: Signup, Credentials, and RBAC - Part 3

Short summary

A production auth and ops guide for SonicJS CMS on Cloudflare Workers, covering disabling public signup, fixing credential mismatches between auth_user and auth_account, and resolving RBAC portal-access errors. Includes CLI scripts for password resets, idempotent seeding via Wrangler's platform proxy, and a troubleshooting table mapping symptoms to fixes. Also covers using patch-package as a temporary bridge for framework bugs while awaiting upstream fixes.

  • Disable Better Auth sign-up for internal CMS to prevent open registration
  • Fix 'Credential account not found' by syncing auth_account via CLI set-password script
  • Resolve portal access errors by promoting users with RBAC role assignments using promote-user script

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more