DEV Community

Discussion on: Twitter Followers Tracker using Next.js, NextAuth and TailwindCSS

Collapse
 
jacklynch00 profile image
Jack Lynch

This is currently using v1.1. In order to use v2, you need to enable that in the NextAuth config like so:

providers: [
        TwitterProvider({
            clientId: process.env.TWITTER_ID,
            clientSecret: process.env.TWITTER_SECRET
            version: "2",
        }),
    ],
Enter fullscreen mode Exit fullscreen mode