rlamasb / Firebase.Xamarin

Light weight wrapper for Firebase Realtime Database REST API.
MIT License
149 stars 39 forks source link

Http status code 400 bad request when trying to use google oauth login #5

Closed michaelgobbers closed 8 years ago

michaelgobbers commented 8 years ago

Hi,

I'm having issues when trying to login with the google oauth authenication. I'm getting a HttpRequestException: 400 (Bad Request)

Could you maybe tell me exactly where to find the firebase API key? Maybe I'm using the wrong one.

The accesstoken is the token that I got from the google login using the Xamarin.auth package so I think I'm ok on that front.

To provide you with some more context I'm using this code in the PCL project of my solution. I'm also using mvvmcross for this.

My Code:

var authProvider = new FirebaseAuthProvider(new FirebaseConfig("My token from firebase console"));
var auth = await authProvider.SignInWithOAuthAsync(FirebaseAuthType.Google, accessToken);
michaelgobbers commented 8 years ago

Hmm Nevermind. It seems that my mvvmcross bindings aren't working correctly and therefore I'm not passing in the accesstoken correctly.