Hacker News new | ask | show | jobs
Ask HN: Why the Twitter app needs the time set correctly to work?
4 points by hosa 1583 days ago
I want to know two things -how the twitter app discovers my time is incorrect -Why it needs me to have the correct time.. Usually I rant but im sure u all hate Twitter just as much as i do..
2 comments

Part of the OAuth protocol requires a timestamp, which needs to be within the same 5 minutes of the Twitter server. If the timestamp is out of these bounds, Twitter returns HTTP 401 Unauthorized responses and nothing works.
I don't recall exactly when, but I do recall writing into some client program a server time request with local time taken when sending the request and having received the response. The delta to the midpoint time was used as an offset for further communication. There were many users with PCs that didn't have their time correctly set and it was an easier solution.
My first guess is to prevent authentication and MFA issues for non-technical users.