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:
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!
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
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!