Configuration & Secrets

Environment Variables (wrangler.toml)

VariableDescription
ENVIRONMENTproduction or development
WHATSAPP_WABA_IDYour WhatsApp Business Account ID
WHATSAPP_SIGNUP_CONFIG_IDMeta Embedded Signup configuration ID

Secrets (wrangler secret put)

SecretDescription
ENCRYPTION_KEY32-byte hex key for AES-256-GCM encryption. Generate with openssl rand -hex 32
GOOGLE_OAUTH_CLIENT_IDGoogle OAuth client ID (for sign-in)
GOOGLE_OAUTH_CLIENT_SECRETGoogle OAuth client secret
FACEBOOK_APP_IDFacebook app ID (sign-in + Instagram + WhatsApp signup)
FACEBOOK_APP_SECRETFacebook app secret
WHATSAPP_ACCESS_TOKENSystem user token for your shared WABA
WHATSAPP_VERIFY_TOKENWebhook verification token. Generate with openssl rand -hex 16
INSTAGRAM_VERIFY_TOKENInstagram webhook verification token. Generate with openssl rand -hex 16

OAuth Redirect URIs

Register these in the respective developer consoles: