step-up-labs/firebase-authentication-dotnet

Create Email and Password issue in .Net MAUI

L10Messi10 opened this issue · 0 comments

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(); }