RealComposer

Mobile Apps Safe & Unsafe Practices

Direct Answer

iOS and Android binaries can be decompiled and their traffic inspected, so any API secret inside an app should be considered public. Store only user session tokens on device in Keychain or Keystore, and route private API calls through a server or edge proxy.

Credentials & Where They Belong

Client safe
User session tokens

Store in iOS Keychain or Android Keystore-backed storage.

Server only
Upstream API secrets

Never in Info.plist, BuildConfig, or bundled assets.

Safe Practices

  • Use secure storage for tokens

    Keychain and Keystore protect tokens at rest better than plain preferences.

  • Slim responses for cellular networks

    Smaller payloads render faster on high-latency mobile connections.

  • Make backend changes without app releases

    An edge layer lets you rotate keys and change upstreams without waiting on store review.

Unsafe Practices

  • Embedding secret keys in the binary

    Tools extract strings from IPA and APK files in minutes.

  • Storing tokens in plain preferences

    UserDefaults and SharedPreferences are readable on compromised devices.

The RealComposer Pattern

Ship only an rc_live_ client token in the app and call one edge URL that aggregates, slims, and caches upstream data. Rotate upstream keys in the vault without a new release.

START BUILDING FREE

Frequently Asked Questions

Q:Does certificate pinning protect API keys in my app?

It makes traffic inspection harder, but keys can still be pulled from the binary. Keep secrets off the device.

Combine firebase auth user with supabase profile endpoint

Firebase ID token lookup and Supabase profile row merged at edge. For "combine firebase auth user with supabase profile endpoint", store FIREBASE_ACCESS_TOKEN, SUPABASE_SERVICE_ROLE_KEY in Secret Vault, call https://firestore.googleapis.com/v1/projects/{{query.projectId}}/databases/(default)/documents/{{query.collection}}/{{query.docId}} from a Worker, and let React / Flutter / Mobile hit only https://realcomposer.com/v1/workspace/combine-firebase-auth-with-supabase-profile with an rc_live_ client token.

Sub-10ms edgeView Recipe

Related Concepts