packages/auth/demo/public/script.js
function getIdTokenResult(forceRefresh) {
  if (activeUser() == null) {
    alertError('No user logged in.');
    return;
  }
  activeUser().getIdTokenResult(forceRefresh).then(function(idTokenResult) {
    alertSuccess(JSON.stringify(idTokenResult));
  }, onAuthError);
}
function getIdTokenResult(forceRefresh) {
  if (activeUser() == null) {
    alertError('No user logged in.');
    return;
  }
  activeUser().getIdTokenResult(forceRefresh).then(function(idTokenResult) {
    alertSuccess(JSON.stringify(idTokenResult));
  }, onAuthError);
}
function getIdTokenResult ( forceRefresh ) { if ( activeUser ( ) == null ) { alertError ( 'No user logged in.' ) ; return ; } activeUser ( ) . getIdTokenResult ( forceRefresh ) . then ( function ( idTokenResult ) { alertSuccess ( JSON . stringify ( idTokenResult ) ) ; } , onAuthError ) ; }
Gets or refreshes the ID token result.
@param {boolean} forceRefresh Whether to force the refresh of the token
or not
Gets or refreshes the ID token result .