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
ديان
ديان2y 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
Alex2y ago
Did you configure the googleProvider correctly? I assume not
ديان
ديان2y ago
ah yes ig i put the client id and secret correctly in the env also the types as well
ديان
ديان2y ago
Is This thing placed correctly?
Alex
Alex2y ago
I think so
ديان
ديان2y ago
What's wrong then :\
Amos
Amos2y ago
It could be because another account you already logged in with uses the same email as the Google account (I think)
ديان
ديان2y ago
you mean I'm already logged in the app ?
Amos
Amos2y ago
If you aren't using any other providers then disregard what I am saying
ديان
ديان2y ago
okayy
ديان
ديان2y ago
Got an error in the console
Amos
Amos2y ago
So it's something with your db
ديان
ديان2y ago
oh btw i'm using local url of mongo lemme try with the atlas .
Want results from more Discord servers?
Add your server