So I have an app.
Mobile, or JavaScript. Whatever. Windows, Apple, Android. I have a logging API. It has an API key. The app needs to provide that API key before logging anything. One of the things I need to log is login failures! For that reason, I have to have that API key before the user logs in. Where do I store it?
I can't keep the API key in the app, like in the settings file or the source, because that is all available to the user. I can't call to the server for it with OAuth2, because the user hasn't authenticated, so I can't make the hash. I can't store it in the keychain, because the API key will still have the be in the app bundle when it downloads, in order to store it in the keychain.
So, where do I put it?