I have an express + typescript API REST that authenticate user using JWT without session, because I am running docker micro services.
Now I need to integrate user twitter account post successfully login, to add other functionality inside my application.
I am starting with doc here: https://www.passportjs.org/packages/passport-twitter/
but.. Where comes TwitterStrategy ? I didn't fine any related import about it.
My process will be:
- Front-end call to backend endpoint to receive url to access to user account token;
- User authorize my application to read and write to him account;
- app redirect to front-end with oauth2 token;
- front-end send to backend the oauth2 token received, and save it to use it.
I have already created an application on twitter and added read and write access.
I'm going crazy to find how to quickly and easily connect the user's twitter account and then integrate some operations with the twit library.
Thanks for the support
I have an express + typescript API REST that authenticate user using JWT without session, because I am running docker micro services.
Now I need to integrate user twitter account post successfully login, to add other functionality inside my application.
I am starting with doc here: https://www.passportjs.org/packages/passport-twitter/
but.. Where comes TwitterStrategy ? I didn't fine any related import about it.
My process will be:
I have already created an application on twitter and added read and write access.
I'm going crazy to find how to quickly and easily connect the user's twitter account and then integrate some operations with the twit library.
Thanks for the support