Oauth2 with pkce for Twitter API

Ok… the error from the Postman console is:

“Error: Authentication window was closed”

What could it be? What am I missing?

I “think” I am using all the right information…

  • postman callback website is good? I had something different, but I changed it… don’t know if it is correct?

  • Auth URL + access token URL I think is good from twitter

  • Client ID and Client Secret are good for sure.

  • scope is there… do I need to put it “like this” ?

What else could I check or double check?


I changed the callback URL to:

https://oauth.pstmn.io/v1/browser-callback

Now, error:

"Error: [ object Object]

This post is pretty old, so hopefully you’ve fixed your problem by now. But just in case someone else is looking for an answer, here’s what sorted it out for me: I forgot to put state in the State field

1 Like