Skip to content

Attempts to register existing email #30

@ghost

Description

Hey, on a brand new nextjs app, trying to get this library working, but I have to issues:

  1. When using an existing email it attempts to re-register me resulting in a 400 EMAIL_EXISTS
  2. Using a new email it does not redirect to the continueUrl

I only have three files, a firebase init, and empty homepage and a Login page with your component

// nextjs/firebase/index.ts
const app = initializeApp(firebaseConfig);
export const auth = getAuth(app);
export const firebaseuiConfig = {
  continueUrl: "/",
  signInOptions: ["emailpassword", "google.com"],
};

// nextjs/app/login/page.ts
"use client";

import { auth, firebaseuiConfig } from "@/firebase";
import FirebaseUIReact from "firebaseui-react";

export default function Login() {
  return (
    <>
      <h1>Log In</h1>
      <FirebaseUIReact auth={auth} config={firebaseuiConfig} />
    </>
  );
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions