function isValidSignRequest(request) {
  var signChallenges = getSignChallenges(request);
  if (!signChallenges) {
    return false;
  }
  var hasDefaultChallenge = request.hasOwnProperty('challenge');
  var hasAppId = request.hasOwnProperty('appId');
  // If the sign challenge array is empty, the global appId is required.
  if (!hasAppId && (!signChallenges || !signChallenges.length)) {
    return false;
  }
  return isValidSignChallengeArray(
      signChallenges, !hasDefaultChallenge, !hasAppId);
}
/**
 * Returns whether the request appears to be a valid sign request.
 * @param {Object} request The request.
 * @return {boolean} Whether the request appears valid.
 */
Returns whether the request appears to be a valid sign request.
@param {Object} request The request.
@return {boolean} Whether the request appears valid.
Returns whether the request appears to be a valid sign request . @param { Object } request The request . @return { boolean } Whether the request appears valid .
function isValidSignRequest(request) {
  var signChallenges = getSignChallenges(request);
  if (!signChallenges) {
    return false;
  }
  var hasDefaultChallenge = request.hasOwnProperty('challenge');
  var hasAppId = request.hasOwnProperty('appId');
  if (!hasAppId && (!signChallenges || !signChallenges.length)) {
    return false;
  }
  return isValidSignChallengeArray(
      signChallenges, !hasDefaultChallenge, !hasAppId);
}
function isValidSignRequest ( request ) { var signChallenges = getSignChallenges ( request ) ; if ( ! signChallenges ) { return false ; } var hasDefaultChallenge = request . hasOwnProperty ( 'challenge' ) ; var hasAppId = request . hasOwnProperty ( 'appId' ) ; if ( ! hasAppId && ( ! signChallenges || ! signChallenges . length ) ) { return false ; } return isValidSignChallengeArray ( signChallenges , ! hasDefaultChallenge , ! hasAppId ) ; }
Returns whether the request appears to be a valid sign request.
Returns whether the request appears to be a valid sign request .
// If the sign challenge array is empty, the global appId is required.