JRPG AddictJ
Convex Community9mo ago
6 replies
JRPG Addict

When I sign in using Google OAuth with

When I sign in using Google OAuth with Convex Auth, I don't get the option to pick an account. It just automatically logs in with the latest used account. How do I force account selection every time the user clicks the login button?
  const { signIn } = useAuthActions();
  const t = useTranslations("Auth");

  return (
    <Button
      onClick={() => signIn("google", { prompt: "select_account" })}
      className={cn(className)}
    >
      <FaGoogle />
      {!isIcon && t("signIn")}
    </Button>
  );
Was this page helpful?