packages/auth/demo/public/script.js
function onGetRedirectResult() {
  auth.getRedirectResult().then(function(response) {
    log('Redirect results:');
    if (response.credential) {
      log('Credential:');
      log(response.credential);
    } else {
      log('No credential');
    }
    if (response.user) {
      log('User\'s id:');
      log(response.user.uid);
    } else {
      log('No user');
    }
    logAdditionalUserInfo(response);
    console.log(response);
  }, onAuthError);
}
function onGetRedirectResult() {
  auth.getRedirectResult().then(function(response) {
    log('Redirect results:');
    if (response.credential) {
      log('Credential:');
      log(response.credential);
    } else {
      log('No credential');
    }
    if (response.user) {
      log('User\'s id:');
      log(response.user.uid);
    } else {
      log('No user');
    }
    logAdditionalUserInfo(response);
    console.log(response);
  }, onAuthError);
}
function onGetRedirectResult ( ) { auth . getRedirectResult ( ) . then ( function ( response ) { log ( 'Redirect results:' ) ; if ( response . credential ) { log ( 'Credential:' ) ; log ( response . credential ) ; } else { log ( 'No credential' ) ; } if ( response . user ) { log ( 'User\'s id:' ) ; log ( response . user . uid ) ; } else { log ( 'No user' ) ; } logAdditionalUserInfo ( response ) ; console . log ( response ) ; } , onAuthError ) ; }
Displays redirect result.
Displays redirect result .