signinSuccess apparently not firing

47 views
Skip to first unread message

Matt Steele

unread,
Jun 6, 2016, 1:32:25 PM6/6/16
to Firebase Google Group
Hi
I have the following config code and callback intended to redirect on signInSuccess being fired, but no message is being sent to the console. Can some please point me in the right direction? Thanks in advance.

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': <tos url>',
        '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;
          }
        }
      };

Bassam Ojeil

unread,
Jun 16, 2016, 6:26:54 PM6/16/16
to Firebase Google Group
Hey Matt, is the sign in succeeding, but not redirecting to your signInSuccessUrl?
The provided info is very limited. We need more data to investigate.
Reply all
Reply to author
Forward
0 new messages