Email is nil in oauth callback user data for certain users


I have set up my app for oauth registration and login, and it is working perfectly for most users, but a few twitter accounts that I’ve tested with return “email”=>nil in the user data returned from oauth. I’ve also ruled out the unverified/unconfirmed twitter email address explanation that I’ve seen elsewhere.

If this is a common issue, I guess I’ll need to redirect to a form and ask for the user’s email, but I would obviously like to avoid that. Let me know if I can post any code that might be helpful in diagnosis.



The most common situation I’m aware of for email being returned null are where the email address was not verified on account registration. I would suggest the secondary process you mention as an alternative.