src/FamilySearch.js
function(options){
  
  // Set the default options
  this.appKey = '';
  this.environment = 'integration';
  this.redirectUri = '';
  this.tokenCookie = 'FS_AUTH_TOKEN';
  this.maxThrottledRetries = 10;
  this.saveAccessToken = false;
  this.accessToken = '';
  this.jwt = '';
  this.middleware = {
    request: [
      requestMiddleware.url,
      requestMiddleware.defaultAcceptHeader,
      requestMiddleware.authorizationHeader, 
      requestMiddleware.disableAutomaticRedirects, 
      requestMiddleware.body
    ],
    response: [
      responseMiddleware.redirect, 
      responseMiddleware.throttling, 
      responseMiddleware.json
    ]
  };
  
  // Process options
  this.config(options);
}
function(options){
  
  // Set the default options
  this.appKey = '';
  this.environment = 'integration';
  this.redirectUri = '';
  this.tokenCookie = 'FS_AUTH_TOKEN';
  this.maxThrottledRetries = 10;
  this.saveAccessToken = false;
  this.accessToken = '';
  this.jwt = '';
  this.middleware = {
    request: [
      requestMiddleware.url,
      requestMiddleware.defaultAcceptHeader,
      requestMiddleware.authorizationHeader, 
      requestMiddleware.disableAutomaticRedirects, 
      requestMiddleware.body
    ],
    response: [
      responseMiddleware.redirect, 
      responseMiddleware.throttling, 
      responseMiddleware.json
    ]
  };
  
  // Process options
  this.config(options);
}
function ( options ) { // Set the default options this . appKey = '' ; this . environment = 'integration' ; this . redirectUri = '' ; this . tokenCookie = 'FS_AUTH_TOKEN' ; this . maxThrottledRetries = 10 ; this . saveAccessToken = false ; this . accessToken = '' ; this . jwt = '' ; this . middleware = { request : [ requestMiddleware . url , requestMiddleware . defaultAcceptHeader , requestMiddleware . authorizationHeader , requestMiddleware . disableAutomaticRedirects , requestMiddleware . body ] , response : [ responseMiddleware . redirect , responseMiddleware . throttling , responseMiddleware . json ] } ; // Process options this . config ( options ) ; }
Create an instance of the FamilySearch SDK Client

@param {Object} options See a description of the possible options in the docs for config().
Create an instance of the FamilySearch SDK Client