---
title: "Discussion on \"How to use Twitter OAuth 2.0 and Passport.js for user login\" | Hashnode"
description: "Discussion on \"How to use Twitter OAuth 2.0 and Passport.js for user login\". tl;dr Use the Node.js package @superfaceai/passport-twitter-oauth2 to handle user authentication with Twitter's v2 API and Passport.js.\nhttps://github.com/superfaceai/passport-twitter-oauth2\nRead on for the background, how to obtain Twitter credentia..."
url: "https://hashnode.com/posts/twitter-oauth2-passport/6384881ac93d500ad2016469"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to use Twitter OAuth 2.0 and Passport.js for user login](https://jnv.hashnode.dev/twitter-oauth2-passport?utm_source=hashnode&utm_medium=feed)

tl;dr Use the Node.js package @superfaceai/passport-twitter-oauth2 to handle user authentication with Twitter's v2 API and Passport.js. https://github.com/superfaceai/passport-twitter-oauth2 Read on for the background, how to obtain Twitter credentia...

Nov 28, 2022 · 10 min read · jnv.hashnode.dev  
Read the article

-   [#twitter](https://hashnode.com/tag/twitter)
-   [#passport](https://hashnode.com/tag/passport)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#oauth](https://hashnode.com/tag/oauth)
-   [#express](https://hashnode.com/tag/express)

## Written by

[Jan Vlnas](https://hashnode.com/@jnv)

@jnv · Prague, Czech Republic

  
[View profile](https://hashnode.com/@jnv)

Developer Advocate @ Superface

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
