I get the error with NextJS and Google OAuth, I tried to define a random generated state as seen below but the error persist. My domain is set as http://localhost:3000/
TL;DR
User is encountering a "general_argument_invalid" error when using Google OAuth with NextJS. They have tried defining a random generated state but the error persists. The user's domain is set as "http://localhost:3000/". No solution is provided.