Closed tnishiki closed 3 years ago
Hi there, I was also getting this same issue. I guess it's the issue with the latest release in FirebaseAuthentication.net (version 3.5.0), so you can just install the previous version that is FirebaseAuthentication.net 3.4.0 and then hopefully, it should work :)
Same problem here. I already solved this issue on a local version that i had (source code ), but updated to nuget, becuase of code maintenece... Here is my code that still works
public async Task<FirebaseAuthLink> SignInWithEmailAndPasswordAsync(string email, string password
string tenantId = null)
{
String sb = $"{{\"email\":\"{email}\",\"password\":\"{password}\",";
if (tenantId != null)
{
sb+=($"\"tenantId\":\"{tenantId}\"");
}
sb+=("\"returnSecureToken\":true}}");
sb = sb.Replace("{{", "{").Replace("}}", "}"); //added this Line
return await ExecuteWithPostContentAsync(GooglePasswordUrl, sb.ToString()).ConfigureAwait(false);
}
Just to let you know this bug was fixed on PR #136 and was successfully published on Nuget repository with version 3.6.0, you just need to update your package to the last available version.
Thanks for the fix @sheindel.
@bezysoftware you can now close this issue.
Thanks for the fix !
Hello there,
I'm trying to use SignInWithEmailAndPasswordAsync on FirebaseAuthentication.net 3.5.0, I always got a JSON error.
error message:
I saw FirebaseAuthProvider.cs changes in Add multi-tenancy to sign in with email and password #113.
If I could fix it, I think it would be:
Thanks