MyAppToken blog
Hardcoded keys, mobile auth, and the proxy pattern — explained.
An ephemeral token is a short-lived, per-user credential your app gets at runtime instead of shipping an API key. How the flow works, how long tokens should live, how to renew them, and where provider-native ephemeral tokens fit.
An Android APK is a zip file. Any provider key you compile in is sitting in plain text for anyone who downloads your app. Here's how it's extracted in minutes — and how to stop it.
A static API key is the wrong credential for a client you don't control. Per-user, short-lived tokens give you revocation, rate limits and analytics the key never can.
Any limit enforced inside the app is advisory — the attacker controls the client. Real abuse control lives on the server, keyed to the user.
App Check proves a request came from a genuine build of your app — not who the user is, and not a perfect lock. Here's the honest threat model.
You don't need to build and run a server to keep your LLM key safe. Swap the base URL to a proxy, keep the provider's native API, and ship.
Provider keys carry random secret material plus fixed prefixes and markers that make them detectable, and formats that make naive detection full of false positives.