Last Updated: Aug 20, 2024
Overview
The following error is received continuously from Twitter.
InternalOAuthError: Could not authenticate you.
Applies To
- API
Cause
This is happening due to the Twitter v1.1 - v2 api changes.
Message from Twitter:
- “Please update the code in your app to use v2 endpoints - this is valid to all endpoints except for media upload endpoints, which are not currently supported on v2, so you can continue to use those on v1.1.”
The current v1.1 api endpoints can no longer return the user email. This is already noted as not possible in the Auth0 Twitter connection. It looks like until recently, the v1.1 api was allowed to return emails but is no longer working. The API v2 available to Twitter does not currently have access to fetch the user email. Please see this documentation for more details.
The old v1 endpoint that worked has been removed: GET account/verify_credentials.
Solution
Currently, as per the Twitter API changes, it is not possible to fetch user email. There is some consideration to change this from Twitter’s side, but this is under their control.
One possible workaround for this issue is subscribing with a new account but this is definitely not a permanent solution.
These endpoints could previously fetch email, but no v2 option exists: