Skip to content

initializeAuth is not idempotent #8891

Closed
@jhuleatt

Description

@jhuleatt

Operating System

n/a

Environment (if applicable)

n/a

Firebase SDK Version

11.6.0

Firebase SDK Product(s)

Auth

Project Tooling

Next.js

Detailed Problem Description

getAuth is idempotent, but initializeAuth is not. This causes issues with hot reloads while editing a Next.js app.

Steps and code to reproduce issue

Use initializeAuth in a Next.js app. Start the dev server, use initializeAuth, and see it error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions