dist/hello.all.js
function(services, options) {

		var utils = this.utils;

		if (!services) {
			return this.services;
		}

		// Define provider credentials
		// Reformat the ID field
		for (var x in services) {if (services.hasOwnProperty(x)) {
			if (typeof (services[x]) !== 'object') {
				services[x] = {id: services[x]};
			}
		}}

		// Merge services if there already exists some
		utils.extend(this.services, services);

		// Update the default settings with this one.
		if (options) {
			utils.extend(this.settings, options);

			// Do this immediatly incase the browser changes the current path.
			if ('redirect_uri' in options) {
				this.settings.redirect_uri = utils.url(options.redirect_uri).href;
			}
		}

		return this;
	}
function(services, options) {

		var utils = this.utils;

		if (!services) {
			return this.services;
		}

		// Define provider credentials
		// Reformat the ID field
		for (var x in services) {if (services.hasOwnProperty(x)) {
			if (typeof (services[x]) !== 'object') {
				services[x] = {id: services[x]};
			}
		}}

		// Merge services if there already exists some
		utils.extend(this.services, services);

		// Update the default settings with this one.
		if (options) {
			utils.extend(this.settings, options);

			// Do this immediatly incase the browser changes the current path.
			if ('redirect_uri' in options) {
				this.settings.redirect_uri = utils.url(options.redirect_uri).href;
			}
		}

		return this;
	}
function ( services , options ) { var utils = this . utils ; if ( ! services ) { return this . services ; } // Define provider credentials // Reformat the ID field for ( var x in services ) { if ( services . hasOwnProperty ( x ) ) { if ( typeof ( services [ x ] ) !== 'object' ) { services [ x ] = { id : services [ x ] } ; } } } // Merge services if there already exists some utils . extend ( this . services , services ) ; // Update the default settings with this one. if ( options ) { utils . extend ( this . settings , options ) ; // Do this immediatly incase the browser changes the current path. if ( 'redirect_uri' in options ) { this . settings . redirect_uri = utils . url ( options . redirect_uri ) . href ; } } return this ; }
Initialize Define the client_ids for the endpoint services @param object o, contains a key value pair, service => clientId @param object opts, contains a key value pair of options used for defining the authentication defaults @param number timeout, timeout in seconds
Initialize Define the client_ids for the endpoint services