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;
}
}
};