Switch to phone auth via Twilio SMS and add feature flag system

Replace email-based auth (Resend) with phone-based auth (Twilio SMS).
Add BBQ_FEATURES env var for toggling features at deploy time — when
auth is disabled, no login routes are registered and the app works
as before.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-18 08:45:15 -04:00
parent b3203a7506
commit 471cc3ad8c
15 changed files with 820 additions and 21 deletions
+18
View File
@@ -0,0 +1,18 @@
package main
import "strings"
type Features struct {
Auth bool
}
func parseFeatures(env string) Features {
var f Features
for _, flag := range strings.Split(env, ",") {
switch strings.TrimSpace(strings.ToLower(flag)) {
case "auth":
f.Auth = true
}
}
return f
}