Generalize to prepare for Twitter auth