Friday, May 24, 2024
HomeiOS Developmentswift - Storing long-lived HTTP bearer token for third get together API...

swift – Storing long-lived HTTP bearer token for third get together API in iOS Keychain – Stack Overflow


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.



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments