twitter provider: unable_to_get_user_info
I've been setting up a twitter social provider, and I got it working for several hours, but after trying to add scopes, it no longer works.
I get
Error Code: unable_to_get_user_info
so I removed the scopes. but I'm still getting this error. The code is exactly the same as it was earlier today when it was working 🤷🏼♂️
I tried logging into my X account and revoke access to my app, so it could request it from scratch, but still the same problem persists.
I also tried logging into my X developer account and regenerating all of the tokens and updating them in my env file. But still the same error.
It does redirect to x.com for auth fine, and when clicking "Authorize" it redirects back to my app fine, and then I get this error.
Why would better-auth not be able to read my user info all of a sudden? When it worked a few hours ago? Is it because I logged in and out too many times today while testing or something?
I also tried in incognito and another browser, same issue.
2 Replies
It does seem to request the correct permissions when I authorize.

I'm still getting this error:
I tried deploying my application to a domain and updating the URLs in X developer portal. But the problem is still there.
I tried starting a new dummy project w/ nothing but better-auth to rule out my code changes, but it also fails in that minimal-reproduction project.
I tried creating a new X account, and I was able to login to that one without problems.
Has anyone encountered this before? Getting your account blocked by X when developing an OAuth flow? Am I banned forever?