twitter-api-v2-3-legged-login-using-next-connect

Create a .env.local file. It should be duplicate of .env.example file & replace it with Twitter API Keys.

After that, install the dependencies & it's good to go.