Next.js course, next auth error

Hello everyone,
In next auth section, where Mosh explains required configuration to implement a google provider, I followed those settings step by step, but the problem is that when I click Login button, while I can see consent screen and select my google account, I redirect to a page with this error:

Try signing in with a different account.

One more thing, I am from Iran, and I visited google console via a VPN to get google client id, so is that possible I cannot use these services due to my country.

Make sure your next auth route is set up correctly.

Here’s mine!

import NextAuth from "next-auth";
import GoogleProvider from "next-auth/providers/google";
import type { NextAuthOptions } from "next-auth";
import { PrismaAdapter } from "@next-auth/prisma-adapter";
import { prisma } from "@/prisma/client";

export const authOptions: NextAuthOptions = {
  adapter: PrismaAdapter(prisma),
  providers: [
    GoogleProvider({
      clientId: process.env.GOOGLE_CLIENT_ID!,
      clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
    }),
  ],
  session: {
    strategy: "jwt",
  },
};

const handler = NextAuth(authOptions);

export { handler as GET, handler as POST };
code here

Thank you very much, @parkerrex. I simply switched to another VPN, and the problem was resolved. My IP address was being blocked by Google Cloud, which was the problem.