signInWithProvider for Google is not working (using react-native-oauth for cred.)
I'm using react-native-oauth to authenticate with Google and have it return the payload which contains an access_token. That is working fine.
I am then using the access_token, to try and authenticate with Firebase, using Firestack.
Here is the call:
const configurationOptions = {
debug: true,
clientID: 'xxxxxxxx-0ufhn1bvnyqq92id0m.appsyyyyyyy.googleusercontent.com'
};
const firestack = new Firestack(configurationOptions);
firestack.signInWithProvider('google', resp.response.credentials.access_token, '') //.
.then((user)=>{
this.props.navigator.push(Router.getRoute('homeView', {showText: true}));
})
.catch(err => {
console.log(err)
});
this is the error Firebase is sending back:
{error: "No user signed in", description: "An internal error has occurred, print and inspect the error details for more information."}
Given that the react-native-oauth callback succeeds and returns me a payload, shouldn't the access_token to then authenticate to Firestack therefore work ?
Just for clarification, what platform are you working on?
this is iOS only
I'll check it over here after I finish google auth support in react-native-oauth on Android
txs mate much appreciated
Okay, I checked it out here. Are you working on the master branch?
Yes I had installed from master branch
Okay, cool... did you enable it in Firebase?
Feel free to jump in the gitter room for more real-time debugging: https://gitter.im/fullstackreact/react-native-firestack
@ajonno Are you passing access_token or idToken. Firebase expects idToken for google auth
@ajonno did you get this fixed?
Hey Ari - unfortunately no, I had to move on to other tasks the day after we caught up. I'm going to take another look this weekend, hopefully to get it sorted. Will let you know.
On 1 Dec 2016 11:11 AM, "Ari" [email protected] wrote:
@ajonno https://github.com/ajonno did you get this fixed?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fullstackreact/react-native-firestack/issues/168#issuecomment-264038340, or mute the thread https://github.com/notifications/unsubscribe-auth/AC3bVdoT5HuHCh2p-voK7tzBpwXeeWn-ks5rDhC0gaJpZM4K832A .
Any updates on this? Not working for me on react-native 0.40. All other providers work.
We had to park this and keep the app build moving. Funny enough I came back to this a few days ago to see if latest version worked with Google auth, but I couldn't get it going either. Like you we are still very keen to resolve.
Holla @ajonno and @birkir -- Does gauth work for you on rn-oauth or is it integration with firestack?
yes sorry i did mean to add we were trying via rn-oauth
I've seen some success with the google-signin component, yet to try it.
Getting this same error right now. iOS Only using react-native-google-signin. Odd thing is it was working before...