Skip to content
About

A Backdoor (the Legal Kind) for Local Testing

Added a development-only bypass so the compliance portal loads without needing a real login during local testing.

1 min readEvergreen
On this page

Sometimes you just need to get in without knocking.

What happened

The compliance portal requires an admin login to see anything. That's great on the real site — nobody should waltz into the condo management dashboard without proving who they are. But during development, it's annoying to go through the full login dance every time you want to check that a page renders correctly.

So I added a dev-mode bypass. When you're running the server locally and you set a special flag, the server pretends you're already logged in. The flag only works on localhost — so even if someone accidentally left it on, it wouldn't do anything on the live site.

It follows the same pattern already used for owner auth. Consistent, low-risk, and makes testing much less painful.


PR: https://github.com/StevieIsmagic/honest-cam/pull/30

Enjoyed this? Join the newsletter.

New essays and notes straight to your inbox.

Newsletter coming soon — stay tuned.