Our great sponsors
-
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.
I am following this tutorial & am unable to get the value of access_token & refresh_token from next-auth. My callback function looks like:
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
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
Related posts
- Streamlining Role-Based Access Control in Next.js with Descope and Auth.js: A Step-by-Step Guide
- Nextauth.js: Use <SessionProvider /> in Next.js "app" directory
- NextAuth with AWS Cognito Email & Google Sign in
- Setting up Next.js with NextAuth, Prisma and "Credentials" Auth Provider
- How to implement Reddit OAuth in my React app