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

Commit c1e5968

Browse files
committed
Allow options override with owner flow
1 parent 24cd9ad commit c1e5968

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

client-oauth2.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,9 +513,10 @@
513513
* @param {String} password
514514
* @return {Promise}
515515
*/
516-
OwnerFlow.prototype.getToken = function (username, password) {
516+
OwnerFlow.prototype.getToken = function (username, password, options) {
517517
var self = this
518-
var options = this.client.options
518+
519+
options = assign({}, this.client.options, options)
519520

520521
return this.client._request({
521522
url: options.accessTokenUri,

0 commit comments

Comments
 (0)