`account.access_token` & `account.refresh_token` is `undefined` when using Twitter Provider with `next-auth`?

This page summarizes the projects mentioned and recommended in the original post on /r/nextjs

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • next-auth

    Authentication for the Web.

  • I am following this tutorial & am unable to get the value of access_token & refresh_token from next-auth. My callback function looks like:

  • test-next-auth-v3

  • Hey mate, I couldn't make it work with your code. I'm not sure if it's because you are using next-auth-v4 which is in beta. But I did make this simple example adapted from this tutorial where I could get access & refresh token from account. Here's my github repo

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • twitter-api-v2-3-legged-login-using-next-connect

    3-legged Oauth using twitter-api-v2

  • It looks like this is clearly a bug. Works in v3 (see branch next-auth-v3-with-twitter-api-v2) → https://github.com/deadcoder0904/twitter-api-v2-3-legged-login-using-next-connect/tree/next-auth-v3-with-twitter-api-v2

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts