Skip to content

createUserWithEmailAndPassword Not Implemented for Desktop/JVM Target (NotImplementedError Thrown) #739

@JasminPambhar

Description

@JasminPambhar

When calling FirebaseAuth.createUserWithEmailAndPassword(email, password) in a Compose Multiplatform Desktop (JVM) project using firebase-kotlin-sdk, the following runtime exception occurs:

Error:
kotlin.NotImplementedError: An operation is not implemented.
at com.google.firebase.auth.FirebaseAuth.createUserWithEmailAndPassword(FirebaseAuth.kt:428)

Expected behavior
I expect that calling createUserWithEmailAndPassword would allow user registration (or auth) on the Desktop/JVM target, or at least a clear documentation note that this method is not supported for Desktop.

Actual behavior
Method exists in API surface and compiles, but at runtime, it throws NotImplementedError on Desktop/JVM.

Steps to Reproduce

  1. Set up a Compose Multiplatform project with dev.gitlive:firebase-auth and dev.gitlive:firebase-app in commonMain.
  2. Call FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password) from the Desktop/JVM target.
  3. Run the Desktop app and trigger user registration.

Platform
Compose Multiplatform Desktop (JVM)

SDK Version
dev.gitlive:firebase-auth:2.1.0

Additional Notes

  1. The library documentation mentions multiplatform support including Desktop/JVM.
  2. The exception suggests that this API is not implemented for Desktop/JVM.
  3. If Desktop support is not planned or not technically possible, please clarify this limitation in the documentation.
  4. If partial support exists (e.g., only for Android and iOS), consider hiding this API via expect/actual or throwing a more descriptive exception with platform info.

Stack Trace
text
kotlin.NotImplementedError: An operation is not implemented.
at com.google.firebase.auth.FirebaseAuth.createUserWithEmailAndPassword(FirebaseAuth.kt:428)
at dev.gitlive.firebase.auth.FirebaseAuth.createUserWithEmailAndPassword(auth.kt:65)
...
Request

  1. Please clarify the expected support for createUserWithEmailAndPassword and related Auth APIs on Desktop/JVM.
  2. If not implemented, please document it explicitly or consider restricting the API to supported platforms to avoid runtime crashes.
  3. If possible, provide guidance for alternative solutions for Desktop authentication.

Thank you for your work on making Firebase available to multiplatform developers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions