simple-oauth2
Advanced tools
Comparing version 1.2.0 to 1.3.0
# Changelog | ||
## v1.3.0 | ||
* Add support for custom idParamName in authCode.authorizeURL() method | ||
## v1.2.0 | ||
@@ -4,0 +7,0 @@ * Upgrade dependencies, to avoid using outdated/vulnerable versions |
@@ -25,5 +25,5 @@ 'use strict'; | ||
function authorizeURL(params) { | ||
const options = Object.assign({}, params || {}, { | ||
const options = Object.assign({}, params, { | ||
response_type: 'code', | ||
client_id: config.client.id, | ||
[config.client.idParamName]: config.client.id, | ||
}); | ||
@@ -42,3 +42,3 @@ | ||
function getToken(params, callback) { | ||
const options = Object.assign({}, params || {}, { | ||
const options = Object.assign({}, params, { | ||
grant_type: 'authorization_code', | ||
@@ -45,0 +45,0 @@ }); |
{ | ||
"name": "simple-oauth2", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Node.js client for OAuth2", | ||
@@ -5,0 +5,0 @@ "author": "Andrea Reginato <andrea.reginato@gmail.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30078