I’m constructing an iOS app that talks to a 3rd get together API and provides a bearer token given to me by the API’s developer dashboard. I do know storing the token as a string fixed throughout the supply code just isn’t safe and analysis led me to make use of the iOS Keychain.
I’ve seen a number of tutorials explaining save and entry short-lived tokens which may be generated dynamically (like throughout log in). Nevertheless, since my bearer token is long-lived and by no means adjustments, I am confused how I save this key within the keychain with out finally pasting the token as a string in my app? Is the principle meant manner to supply a login service that delivers the identical token to my all customers?
Beforehand, I used to be constructing an API Proxy service that makes use of my API key however needed to see if bearer tokens might assist me keep away from having to host a Node.js service.