This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
SIGNIN_OAUTH_ERROR on google provider #6088
Labels
question
Ask how to do something or how something works
Question 💬
Hi,
I am getting this error when I try to log in with google social provider.
TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument must be of type function. Received an instance of Object.
It works fine if I don't visit any other page except the home page (http://localhost:3000). But if I visit any other page after signing in except the home page, then I sign out on any page after that; when I try to sign in, it throws this error.
Here are my google login provider settings:
I also use NEXTAUTH_SECRET in the next auth configuration:
secret: process.env.NEXTAUTH_SECRET
How to reproduce ☕️
Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR
The text was updated successfully, but these errors were encountered: