Try signing in with a different account
Unanswered
McKay's Bunting posted this in #help-forum
McKay's BuntingOP
I'm using NextAuth (@auth/core 0.18.0) with the Google provider.
In local dev environment the webpage and authentication runs fine.
In Vercel build I receive the error "Try signing in with a different account" whenever I try to signin.
Some hour ago it was working, the only "important" change I made was to create a separate DB that I only use in dev. Maybe logging in the dev DB caused some problems with the prod one? I've already tried to delete the new dev DB and try as it was before, but I still have the same issue. I've also tried to create new OAuth credentials on the Google Auth console.
In the attachments I sent the log I get in the Vercel console.
In local dev environment the webpage and authentication runs fine.
In Vercel build I receive the error "Try signing in with a different account" whenever I try to signin.
Some hour ago it was working, the only "important" change I made was to create a separate DB that I only use in dev. Maybe logging in the dev DB caused some problems with the prod one? I've already tried to delete the new dev DB and try as it was before, but I still have the same issue. I've also tried to create new OAuth credentials on the Google Auth console.
In the attachments I sent the log I get in the Vercel console.
3 Replies
Your database stores the oAuth keys for registerd users. If you switch databases, you'd have to "register" a new account
McKay's BuntingOP
I have wiped both DBs, they are empty
McKay's BuntingOP
For reference, other people are having the same issue: https://github.com/nextauthjs/next-auth/issues/8943