Skip to content

initializeAuth is not idempotent #8891

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jhuleatt opened this issue Apr 2, 2025 · 0 comments
Open

initializeAuth is not idempotent #8891

jhuleatt opened this issue Apr 2, 2025 · 0 comments

Comments

@jhuleatt
Copy link
Contributor

jhuleatt commented Apr 2, 2025

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.

@jhuleatt jhuleatt added new A new issue that hasn't be categoirzed as question, bug or feature request question labels Apr 2, 2025
@jbalidiong jbalidiong added Repro Needed needs-attention and removed new A new issue that hasn't be categoirzed as question, bug or feature request labels Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants