index.js
function authorizationUri (options) {
  var u = url.parse(this.configuration.authorization_endpoint)

  // assign endpoint and ensure options
  var endpoint = 'authorize'
  if (typeof options === 'string') {
    endpoint = options
    options = {}
  } else if (typeof options === 'object') {
    endpoint = options.endpoint
  } else {
    options = {}
  }

  // pathname
  u.pathname = endpoint

  // request params
  u.query = this.authorizationParams(options)

  return url.format(u)
}
function authorizationUri (options) {
  var u = url.parse(this.configuration.authorization_endpoint)

  // assign endpoint and ensure options
  var endpoint = 'authorize'
  if (typeof options === 'string') {
    endpoint = options
    options = {}
  } else if (typeof options === 'object') {
    endpoint = options.endpoint
  } else {
    options = {}
  }

  // pathname
  u.pathname = endpoint

  // request params
  u.query = this.authorizationParams(options)

  return url.format(u)
}
function authorizationUri ( options ) { var u = url . parse ( this . configuration . authorization_endpoint ) // assign endpoint and ensure options var endpoint = 'authorize' if ( typeof options === 'string' ) { endpoint = options options = { } } else if ( typeof options === 'object' ) { endpoint = options . endpoint } else { options = { } } // pathname u . pathname = endpoint // request params u . query = this . authorizationParams ( options ) return url . format ( u ) }
Returns the url for an OIDC authorization call, for a given set of options.
@method authorizationUri
@param [options={}] {String|Object} Either a string representing an endpoint
(such as 'authorize'), or an options hashmap.
For a full list of options, see the docstring of `authorizationParams()`.
@param [options.endpoint='authorize'] Endpoint for which you're building the
uri.
@return {String} Authorization uri
Returns the url for an OIDC authorization call for a given set of options .