Nextjs 13 part 2: Authentication

I have configured every correctly on the google cloud environment and also code correctly. When I sign in, will receive an erorr saying “Try signing in with a different account”. I have created a new test user on the google cloud, but the situation remains the same. Any clue what is happening and how to fix this?

Same here, did you find solution?


To address this, I updated the @next-auth/prisma-adapter dependency to the latest version. After updating, the issue was resolved, and authentication worked correctly.

To resolve this issue in your project, you can try updating the @next-auth/prisma-adapter dependency by running npm update @next-auth/prisma-adapter