RealComposer
Platform

Expo Edge API Recipes

Production-ready templates for calling third-party APIs from Expowithout exposing secrets or maintaining a custom backend.

Expo safe & unsafe practices
Security & Secret Vault

Hide Anthropic API Key in an Expo App

EXPO_PUBLIC_ variables and app config extra fields are inlined into every Expo build and EAS Update bundle, so an Anthropic key placed there is public. Call a RealComposer pipeline instead: it injects ANTHROPIC_API_KEY as the x-api-key header at the edge and returns just the reply text.

Sub-10ms edgeView Recipe
Security & Secret Vault

Protect Supabase Service Role Key in Expo

The Supabase service_role key bypasses row level security, so it must never appear in an Expo app or OTA update. Keep the anon key in the app for normal queries and send privileged reads to a RealComposer pipeline that holds service_role in the vault and returns filtered fields.

Sub-10ms edgeView Recipe