callback signInSuccess not being fired

327 views
Skip to first unread message

Matt Steele

unread,
Jun 5, 2016, 10:54:43 AM6/5/16
to Firebase Google Group
Hi
I'm just starting out with firebase, I've set up my app and am trying to get the email / password auth working, but I can't get the redirect to fire. I think it's because "signInSuccess" isn't being fired. I think I've set up everything correctly in my console - I can sign up and sign in users, I just can't the redirect working. Any help much appreciated. Code below:

 // FirebaseUI config.
      var uiConfig = {
      'queryParameterForWidgetMode': 'mode',
      'queryParameterForSignInSuccessUrl': 'signInSuccessUrl',
        'signInSuccessUrl': '<my redirect page>',
        'signInOptions': [
          firebase.auth.GoogleAuthProvider.PROVIDER_ID,
          firebase.auth.FacebookAuthProvider.PROVIDER_ID,
          firebase.auth.TwitterAuthProvider.PROVIDER_ID,
          firebase.auth.GithubAuthProvider.PROVIDER_ID,
          firebase.auth.EmailAuthProvider.PROVIDER_ID
        ],
        // Terms of service url.
        'tosUrl': 'http://redacto.co.uk/thanks',
        'callbacks': {
          'signInSuccess': function(currentUser, credential, redirectUrl) {
            // Do something.
            console.log("sign in success")
            console.log(redirectUrl)
            // Return type determines whether we continue the redirect automatically
            // or whether we leave that to developer to handle.
            return true;
          }
        }
      };

boj...@google.com

unread,
Jun 6, 2016, 12:36:40 AM6/6/16
to Firebase Google Group
Hey Matt, the ui config you posted looks fine, can you provide more information, or some additional snippet on how you are initializing the ui? So you are able to sign in/up? what happens when you do? Check your console, are you getting any error, are you able to see the variables you are logging? 
Reply all
Reply to author
Forward
0 new messages