I’m facing a weird issue with OAuth and the /authenticate (Sign in with Twitter) endpoint. Let me try to describe what’s happening:
Recently we enabled “Sign In With Twitter” in our twitter app to be able to use the /authenticate endpoint and be able to sign the user in without asking her to grant access to our app at twitter every time. However, when a user that already authorized our app (before we enabled “Sign In With Twitter”) tries to sign in via our website, the Twitter website just displays a generic “something went wrong” error page when it was supposed to redirect back to our website. But if we use the /authorize endpoint instead (so the user has to actually grant access to the app again) it works. After that, the /authenticate endpoint works fine for that specific account (but not for others).
Is it possible that our twitter app was left in a weird state because we enabled “Sign In With Twitter” after we already had several users that authorized our app? I’m not sure if we’re doing something wrong at our side because there’s no error returned to us, the flow just stops at the generic “something went wrong” page when we use /authenticate but everything works as expected when we use /authorize.
Any help would be much appreciated. Thanks!