Skip to content

Plugin.FirebaseAuth.FirebaseAuthException: An error occurred when accessing the keychain #30

@robertmaxted

Description

@robertmaxted

I'm using the latest stable package of Plugin.FirebaseAuth (4.1.0). But when I try to call the SignInWithEmailAndPasswordAsync(email, password). I get an exception?

Method:

`public async Task SignIn(string email, string password)
{
try
{

    var result = await CrossFirebaseAuth.Current.Instance.SignInWithEmailAndPasswordAsync(email, password);
    var token = await result.User.GetIdTokenAsync(true);
    Preferences.Set("MyFirebaseRefreshToken", token);
    AccountManager.CurrentUserId = result.User.Uid;
    return true;
}
catch (FirebaseAuthException ex)
{
    Console.WriteLine(ex.Reason);
    await App.Current.MainPage.DisplayAlert($"Alert", (ex.Reason.ToString()), "OK");
    return false;
}

}`

Screenshot 2021-04-13 at 20 56 12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions