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

Commit ac094bc

Browse files
authored
Merge query options over default uri query (#47)
1 parent a199dca commit ac094bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client-oauth2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,13 @@ function createUri (options, tokenType) {
154154
// Check the required parameters are set.
155155
expects(options, 'clientId', 'authorizationUri')
156156

157-
return options.authorizationUri + '?' + Querystring.stringify(Object.assign({}, options.query, {
157+
return options.authorizationUri + '?' + Querystring.stringify(Object.assign({
158158
client_id: options.clientId,
159159
redirect_uri: options.redirectUri,
160160
scope: sanitizeScope(options.scopes),
161161
response_type: tokenType,
162162
state: options.state
163-
}))
163+
}, options.query))
164164
}
165165

166166
/**

0 commit comments

Comments
 (0)