simov / grant

OAuth Proxy
MIT License
4.08k stars 257 forks source link

Fix Twitter #286

Closed KishanBagaria closed 10 months ago

KishanBagaria commented 1 year ago

master is throwing this:

{
  output: {
    access_token: 'redacted-redacted',
    access_secret: 'redacted'
  }
}
error - TypeError: Cannot read properties of undefined (reading 'user_id')
    at Object.twitter (foo/node_modules/grant/lib/profile.js:104:39)
    at foo/node_modules/grant/lib/profile.js:40:49
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
simov commented 11 months ago

Hi, I checked both the OAuth1.0a and the OAuth2.0 flows for an app and both seems to be working with the user profile endpoint on my end. Not sure what could have went wrong, can you provide more details about your app config?