function CordovaAuth(options) {
  this.clientId = options.clientId;
  this.domain = options.domain;
  this.redirectUri = options.packageIdentifier + '://' + options.domain + '/cordova/' + options.packageIdentifier + '/callback';
  this.auth0 = new auth0.WebAuth({
    clientID: this.clientId,
    domain: this.domain
  });
  this.client = new auth0.Authentication(this.auth0, {
    clientID: this.clientId,
    domain: this.domain,
    _telemetryInfo: telemetry
  });
}
function CordovaAuth(options) {
  this.clientId = options.clientId;
  this.domain = options.domain;
  this.redirectUri = options.packageIdentifier + ':
  this.auth0 = new auth0.WebAuth({
    clientID: this.clientId,
    domain: this.domain
  });
  this.client = new auth0.Authentication(this.auth0, {
    clientID: this.clientId,
    domain: this.domain,
    _telemetryInfo: telemetry
  });
}
function CordovaAuth ( options ) { this . clientId = options . clientId ; this . domain = options . domain ; this . redirectUri = options . packageIdentifier + '://' + options . domain + '/cordova/' + options . packageIdentifier + '/callback' ; this . auth0 = new auth0 . WebAuth ( { clientID : this . clientId , domain : this . domain } ) ; this . client = new auth0 . Authentication ( this . auth0 , { clientID : this . clientId , domain : this . domain , _telemetryInfo : telemetry } ) ; }
Creates a new Cordova client to handle AuthN/AuthZ with OAuth and OS browser.
@constructor
@param {Object} options
@param {String} options.domain your Auth0 domain
@param {String} options.clientId your Auth0 client identifier obtained when creating the client in the Auth0 Dashboard
@see {@link https://auth0.com/docs/api/authentication}
Creates a new Cordova client to handle AuthN / AuthZ with OAuth and OS browser .