Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Merge query options over default uri query (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey authored Apr 26, 2017
1 parent a199dca commit ac094bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client-oauth2.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,13 @@ function createUri (options, tokenType) {
// Check the required parameters are set.
expects(options, 'clientId', 'authorizationUri')

return options.authorizationUri + '?' + Querystring.stringify(Object.assign({}, options.query, {
return options.authorizationUri + '?' + Querystring.stringify(Object.assign({
client_id: options.clientId,
redirect_uri: options.redirectUri,
scope: sanitizeScope(options.scopes),
response_type: tokenType,
state: options.state
}))
}, options.query))
}

/**
Expand Down

0 comments on commit ac094bc

Please sign in to comment.