Tech
SonicJS Auth Gotchas on Cloudflare: Signup, Credentials, and RBAC - Part 3
Someone tries to log in and you get one of:
Credential account not found
Login works, but You do not have permission to access this area
Random people registering themselves as editors
This post is the production auth/ops guide for SonicJS on Workers — the stuff that isn’t in the “hello deploy” tutorial.
1. Turn off public self-registration
For an internal CMS, open signup is a footgun. Disable Better Auth sign-up in app config:
import { createSoni...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to