Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase Google OAuth redirect error

I'm migrating from Firebase 2 and AngularFire 1 to Firebase 3 and AngularFire 2. With Firebase 2 and AngularFire 1 I had all six auth options working: Google, Facebook, Twitter, Github, e-mail & password, and anonymously. Now with Firebase 3 and AngularFire 2 five auth options are working but Google OAuth refuses to work. I'm using $scope.authObj.$signInWithPopup("google"). The pop-up pops up but then there's an error message:

The redirect URI in the request, https://crudiest-firebase.firebaseapp.com/__/auth/handler, does not match the ones authorized for the OAuth client.

In my Google Developers Console I have the authorized redirect URI set to https://crudiest-firebase.firebaseapp.com/__/auth/handler. This is the URI that works for Facebook, Twitter, and GitHub, and it's the same URI that's in the error message.

This error message has persisted for several days.

Just to make it easy to compare:

https://crudiest-firebase.firebaseapp.com/__/auth/handler // rejected redirect URI https://crudiest-firebase.firebaseapp.com/__/auth/handler // redirect URI in console

Any suggestions why Google is giving me this error message?

like image 922
Thomas David Kehoe Avatar asked Nov 24 '25 18:11

Thomas David Kehoe


1 Answers

After hours I found solution, may be help At the link: https://console.cloud.google.com/apis/credentials?project={your-project}

create web client enter image description here

like image 88
Đức Lê Công Avatar answered Nov 27 '25 15:11

Đức Lê Công



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!