-
-
Notifications
You must be signed in to change notification settings - Fork 175
Description
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
- Set up a Compose Multiplatform project with dev.gitlive:firebase-auth and dev.gitlive:firebase-app in commonMain.
- Call FirebaseAuth.getInstance().createUserWithEmailAndPassword(email, password) from the Desktop/JVM target.
- Run the Desktop app and trigger user registration.
Platform
Compose Multiplatform Desktop (JVM)
SDK Version
dev.gitlive:firebase-auth:2.1.0
Additional Notes
- The library documentation mentions multiplatform support including Desktop/JVM.
- The exception suggests that this API is not implemented for Desktop/JVM.
- If Desktop support is not planned or not technically possible, please clarify this limitation in the documentation.
- 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
- Please clarify the expected support for createUserWithEmailAndPassword and related Auth APIs on Desktop/JVM.
- If not implemented, please document it explicitly or consider restricting the API to supported platforms to avoid runtime crashes.
- If possible, provide guidance for alternative solutions for Desktop authentication.
Thank you for your work on making Firebase available to multiplatform developers!