When do we get PIN code? #91
-
I read https://github.com/PLhery/node-twitter-api-v2/blob/master/doc/auth.md & I found this line:
But when I implemented Login to Twitter, I didn't find any kind of PIN code so I'm wondering where it's coming from. Do I need to use mobile to see the PIN code screen or is it a part of 2FA? Here's my code → https://sourcegraph.com/github.com/deadcoder0904/twitter-api-v2-3-legged-login-using-next-connect |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hi, PIN code is a digit code generated by Twitter (on their website) when user accepts application. It can be used as OAuth verifier on the third step of 3-legged OAuth. Usually, web services do use callbacks to their own websites instead of PIN code authentification :) |
Beta Was this translation helpful? Give feedback.
-
You can find an example of how we create a web server that support a 3-legged OAuth flow here: https://github.com/alkihis/twitter-api-v2-user-oauth-flow-example |
Beta Was this translation helpful? Give feedback.
Hi,
PIN code is a digit code generated by Twitter (on their website) when user accepts application.
This code is here when you don't provide a callback URL.
It can be used as OAuth verifier on the third step of 3-legged OAuth.
Usually, web services do use callbacks to their own websites instead of PIN code authentification :)