Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6963209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:45:35+00:00 2026-05-27T15:45:35+00:00

I’m starting to build an iOS app which will use Twitter as the means

  • 0

I’m starting to build an iOS app which will use Twitter as the means of authenticating and identifying users. I understand the idea of the valet key / access token that OAuth provides but I don’t understand the architecture I should use for state retention, i.e. I need to store additional user specific information for the functionality of the application, but, how should I architect the validation of this information from the user.

So if a user logs in to the app on a device, should I authenticate off that device and then transmit the tokens to my server? Is it acceptable to store these tokens in a my db for later use?

Also, how should I handle the communication of this information in a secure way?

Any posts/talks detailing how to handle the architecture of apps would be tremendously helpful.

  • 1 1 Answer
  • 4 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T15:45:35+00:00Added an answer on May 27, 2026 at 3:45 pm
    1. Always avoid sending information like tokens to a server. Don’t do it unless you must. If you do, always use a secured (HTTPS) connection for the transfer. While the tokens are useless by themselves, they can be combined with the tokens you stored in the application’s code (consumer tokens) and that gives the hacker almost complete control over the user’s account.
    2. If you don’t transmit them to a server, use the iOS Keychain to store the tokens.

    There’s no Twitter API rule that says you can’t store tokens, but there is one that says “Don’t surprise the user”. Basically this means that you can’t tweet from the server, since a user might not expect that. If you’re doing data analysis for the user it’s probably fine, but keep it read-only and inform the user with a push notification when the analysis is done. Again, don’t do anything the user might not expect.

    On caching the user’s information: if we’re only talking about screen name or full name, these really don’t change very often. It’s safe to store these for a duration of 24 hours in a cache. Of course, don’t store timelines this long. You may have to compromise a little bit sometimes – you’ll probably want live data while the user wants to save on battery and network usage.

    Update: what users appreciate most is that you simply use the built-in Twitter features, which mean they only have to click OK. No major OAuth procedures and you don’t get control over the tokens yourself (users will like that).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
We're building an app, our first using Rails 3, and we're having to build
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have an autohotkey script which looks up a word in a bilingual dictionary
This could be a duplicate question, but I have no idea what search terms

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.