Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Persist Twitter OAuth session

Tags:

oauth

twitter

I have a Twitter web app that allows users to submit tweets from my site. However they have to re-login every time they submit a new tweet. Is there a way to save the OAuth session and don't prompt the login screen until users clear their browser cache?

like image 965
ulia Avatar asked Dec 30 '22 06:12

ulia


1 Answers

When you get the callback from Twitter after the user has validated you, you'll receive an auth_token in the headers of the request; you're meant to cache that token, and supply it every time the user makes a request.

It sounds like you're not caching that token and supplying it when the user makes a request.

like image 182
James Polley Avatar answered Feb 24 '23 02:02

James Polley