Closed
Description
Version info
Angular: 2.0.0-rc4
Ionic: 2.0.0-beta.35
Firebase: 3.3.0
AngularFire: 2.0.0-beta.2
Google plus sign in using signInWithCredential(idToken)
.
var provider = (<any> firebase.auth.GoogleAuthProvider).credential(null,res.idToken);
firebase.auth().signInWithCredential(provider)
.then((success) => {
this.navCtrl.setRoot(TabsPage);
console.log("Firebase success: " + JSON.stringify(success));
})
.catch((error) => {
this.error = error
console.log("Firebase failure: " + JSON.stringify(error));
});
Google sign is sucessfull and idToken is received. But , it gives 404 (Not Found)
on https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyAssertion?key=<My-Api-Key>
at firebase.auth().signInWithCredential()
method.
Debug output
** Errors in the JavaScript console **
POST
https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyAssertion?key=My-key 404 (Not Found) zone.js:101
Firebase failure: {"code":"auth/network-request-failed","message":"A network error (such as timeout, interrupted connection or unreachable host) has occurred."} app.bundle.js:254
Expected behavior
Should sign in into firebase using google sign in access token.
Metadata
Metadata
Assignees
Labels
No labels