# How to use OAUTH2 with PKCE for Twitter API?

**URL:** <https://community.auth0.com/t/how-to-use-oauth2-with-pkce-for-twitter-api/110465>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [July 3, 2023, 12:57pm UTC](https://community.auth0.com/t/how-to-use-oauth2-with-pkce-for-twitter-api/110465 "2023-07-03T12:57:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elindo586](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/elindo586/32/48522_2.png) [@Elindo586](https://community.auth0.com/u/Elindo586)\
**Post date:** [July 3, 2023, 12:57pm UTC](https://community.auth0.com/t/how-to-use-oauth2-with-pkce-for-twitter-api/110465/1 "2023-07-03T12:57:37Z")

</div>

Truth I am new at this and just encounter Oauth2 and looking to learn.

Are there any videos in which I can learn how to use OAUTH2.0 with PKCE ???.. I am trying to use the Twitter API but have very little idea of how OAUTH works and what type of code to use?

I am working with JavaScript. Ideally I would like to make this code in Next.js, but I am running into a few issues such as using CronJobs in Next.js, as well as Oauth2.0… so I might just keep this code on simple JavaScript without any REACT or Next.js …

Where can I learn about OAUTH 2.0 with PKCE so I can implement it for the Twitter API???

Thanks much…

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [November 15, 2023, 2:26pm UTC](https://community.auth0.com/t/how-to-use-oauth2-with-pkce-for-twitter-api/110465/3 "2023-11-15T14:26:01Z")

</div>

Hi @Elindo586

Welcome to the Auth0 Community!

Thank you for posting your question and sorry for the late response. I’m leaving a few links to videos from the OktaDev YT channel.

[![](https://global.discourse-cdn.com/auth0/original/3X/4/d/4d40c4952c3b99373a9fdfe2b1bf7bf64cf8d5ea.jpeg "OAuth 2.0 and OpenID Connect (in plain English)") ](https://www.youtube.com/watch?v=996OiexHze0)

[![](https://global.discourse-cdn.com/auth0/original/3X/5/9/594ef47489ae2265e9ec7739891c16c5c4c01fab.jpeg "An Illustrated Guide to OAuth and OpenID Connect") ](https://www.youtube.com/watch?v=t18YB3xDfXI)

[![](https://global.discourse-cdn.com/auth0/original/3X/6/6/66f0450ab9f716bcb0a5a910f991709618730611.jpeg "What's going on with the OAuth 2.0 Implicit flow?") ](https://www.youtube.com/watch?v=CHzERullHe8)

You can find more interesting videos on the channel itself → [https://www.youtube.com/@OktaDev](https://www.youtube.com/@OktaDev)

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 29, 2023, 2:26pm UTC](https://community.auth0.com/t/how-to-use-oauth2-with-pkce-for-twitter-api/110465/4 "2023-11-29T14:26:56Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
