Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I start with Passport? #120

Open
thedarkknight197 opened this issue Apr 9, 2023 · 0 comments
Open

How can I start with Passport? #120

thedarkknight197 opened this issue Apr 9, 2023 · 0 comments

Comments

@thedarkknight197
Copy link

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:

  1. Front-end call to backend endpoint to receive url to access to user account token;
  2. User authorize my application to read and write to him account;
  3. app redirect to front-end with oauth2 token;
  4. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant