TWTRSession cache not cleared after user changes Twitter account in iOS Settings

ios

#1

Repro:

Login to to John’s Twitter account via OS.
Call logInWithCompletion: on your Twitter shared instance.
Delete John’s Twitter account via OS.
Add Jane’s Twitter account via OS.
Call logInWithCompletion: on your Twitter shared instance.
Observe the TWTRSession object is using John’s Twitter session into.

To fix this, I call logout on my Twitter shared instance before trying to login.


#2

@guptron , I want to show login pop up after after logout. How can I clear cache within app ?


#3