Skip to content

How can I start with Passport?  #120

Description

@thedarkknight197

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions