step-up-labs / firebase-authentication-dotnet

C# library for Firebase Authentication
MIT License
376 stars 129 forks source link

Create Email and Password issue in .Net MAUI #206

Open L10Messi10 opened 1 year ago

L10Messi10 commented 1 year ago

Tell me what I'm doing wrong? This code returns "_authClient" as null. P.S I already registered the Api Key and the Domain on my Mauiprogram.cs. Also, the entries I've used to this is not empty. I'm confused why it returns null since it's just adding email to the Firebase Authentication.

try { await _autClient.CreateUserWithEmailAndPasswordAsync(entryEmail.Text, entryPassword.Text); var toast = Toast.Make("Success"); await toast.Show(); } catch (Exception exception) { var toast = Toast.Make(exception.Message); await toast.Show(); }