Skip to content
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

Error with auth user creation #17

Open
kuromiichi opened this issue May 31, 2024 · 4 comments
Open

Error with auth user creation #17

kuromiichi opened this issue May 31, 2024 · 4 comments

Comments

@kuromiichi
Copy link

I am trying to use auth.createUserWithEmailAndPassword() in my common code and everything seems fine, but when I call the method I get this error:

Exception in thread "DefaultDispatcher-worker-1" kotlin.NotImplementedError: An operation is not implemented.
	at com.google.firebase.auth.FirebaseAuth.createUserWithEmailAndPassword(FirebaseAuth.kt:429)
	at dev.gitlive.firebase.auth.FirebaseAuth.createUserWithEmailAndPassword(auth.kt:58)
	at ui.screens.settings.SettingsViewModel$onDialogRegisterClick$1.invokeSuspend(SettingsViewModel.kt:131)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:585)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:802)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:706)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:693)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@108d9c4b, Dispatchers.Default]

I am targeting Android and JVM. I hoped sign in and user creation would be implemented, is it not the case?

@murfel
Copy link

murfel commented Jun 14, 2024

@kuromiichi sounds like a small typo could be the reason for this. I've made a small example of using Firebase Auth via GitLive's Firebase SDK with iOS and Android. You could use this as a starter template or just to compare notes. Does it help to solve your problem?

https://github.com/murfel/kmp-ios-android-firebase-auth

@nbransby nbransby transferred this issue from GitLiveApp/firebase-kotlin-sdk Jun 14, 2024
@nbransby
Copy link
Member

It's not implemented as stated in the readme, but it's probably fairly easy to add if you want to submit a PR you can look at the implementation of signInUserWithEmailAndPassword and the API docs for the FirebaseAuth REST API

@valeriyo
Copy link

So, no way to create user on JVM right now?

@nbransby
Copy link
Member

Not until someone who needs the functionality creates a PR to add it. It's not particularly difficult to do, perhaps you would like to contribute?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants