SOLUTION:- Twitter Login API Asking for user's authorize permission each time When we integrate twitter login in NodeJS, PHP, express, react, Fastify or any framework, we face an issue like if a user is logged in by using twitter OAuth and granted permission to access twitter profile data, and if he logged out from our site try to login again, twitter ask for permission each time. So today we solve this problem by using a simple change Open your code and find https://twitter.com/oauth/authorize?oauth_token= in your code. this is the URL where we redirect to the user after clicking on 'Login with twitter' in our website, and here we are using authorize() function of twitter API that functions always ask for permission to the user each time he tries to log in, so instead of authorizing function we will use authenticate() that will check if a user is already logged in then it will not show permission popup and redirect the user to callback URL. To Replace https://t...
PHP,WORDPRESS,CAKEPHP,JQUERY,PHP TUTORIALS,CAKEPHP TUTORIALS,JQUERY CODES, CSS CODES, HTML CODES,EXPO, React, React Native, Angular,OOPS ,PHP INTERVIEW QUESTIONS @shubham715