Next auth try signing with a new different account

I tried to make login functionality with google sign in but it's saying "try signing with a new different account" all the time
13 Replies
ديان
ديانOP3y ago
<a className="btn" onClick={session ? () => signOut() : () => signIn()}>
{session ? "Log Out" : "Login"}
</a>
<a className="btn" onClick={session ? () => signOut() : () => signIn()}>
{session ? "Log Out" : "Login"}
</a>
Here's the code
Alex
Alex3y ago
Did you configure the googleProvider correctly? I assume not
ديان
ديانOP3y ago
ah yes ig i put the client id and secret correctly in the env also the types as well
ديان
ديانOP3y ago
Is This thing placed correctly?
Alex
Alex3y ago
I think so
ديان
ديانOP3y ago
What's wrong then :\
Amos
Amos3y ago
It could be because another account you already logged in with uses the same email as the Google account (I think)
ديان
ديانOP3y ago
you mean I'm already logged in the app ?
Amos
Amos3y ago
If you aren't using any other providers then disregard what I am saying
ديان
ديانOP3y ago
okayy
ديان
ديانOP3y ago
Got an error in the console
Amos
Amos3y ago
So it's something with your db
ديان
ديانOP3y ago
oh btw i'm using local url of mongo lemme try with the atlas .
Want results from more Discord servers?
Add your server