robinfaraj
BABetter Auth
•Created by robinfaraj on 5/1/2025 in #help
Twitter OAuth not returning email despite proper configuration
I'm using better-auth with Twitter OAuth and can't get the email address from users. I've set up everything according to docs but still getting:
What I've done:
- Enabled "Request email from users" in Twitter dev portal
- Set up app as "Web App" with "Confidential client"
- Set callback URL to
http://localhost:3000/api/auth/callback/twitter
- Been following this guide: https://www.better-auth.com/docs/authentication/twitter
Current code:
What I'm getting:
No email in the profile data. How can I get Twitter to return the email address with better-auth? Is this a Twitter API limitation or a configuration issue?
Any help appreciated!22 replies