provider.SignInWithOAuth() throws exception.
See original GitHub issueException: “Response status code does not indicate success: 400” when I call SignInWithOAuth
var auth = await provider.SignInWithOAuthAsync(FirebaseAuthType.Facebook, facebookAccessToken);
The facebookAccessToken
is generated properly and I use Firebase Browser APIKey for FirebaseConfig
UWP 10.0
Stack trace:
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at Firebase.Auth.FirebaseAuthProvider.<SignInWithPostContentAsync>d__16.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable``1.ConfiguredTaskAwaiter.GetResult() at Firebase.Auth.FirebaseAuthProvider.<SignInWithOAuthAsync>d__8.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter``1.GetResult() at simple_social_media.MainPage.<mainlogin_Click>d__1.MoveNext()
Could the problem be at my end?
Issue Analytics
- State:
- Created 7 years ago
- Comments:9
Top GitHub Comments
Can you try the latest version of the package (v2.0.1)? In case of an error it throws a FirebaseAuthException which should contain all information you should need to debug it (target url, post data and most imporantly responseData, which should contain the reason for the error).
Closing the issue due to inactivity. Feel free to re-open