Comparing version 3.4.0 to 3.5.0
# Change Log | ||
## [v3.5.0](https://github.com/auth0/node-auth0/tree/v3.5.0) (2023-06-26) | ||
[Full Changelog](https://github.com/auth0/node-auth0/compare/v3.4.0...v3.5.0) | ||
**Added** | ||
- Add option to pass x-request-language header for passwordless [\#873](https://github.com/auth0/node-auth0/pull/873) ([adamjmcgrath](https://github.com/adamjmcgrath)) | ||
## [v3.4.0](https://github.com/auth0/node-auth0/tree/v3.4.0) (2023-05-05) | ||
@@ -4,0 +12,0 @@ |
{ | ||
"name": "auth0", | ||
"version": "3.4.0", | ||
"version": "3.5.0", | ||
"description": "SDK for Auth0 API v2", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -66,2 +66,4 @@ ![Node.js client library for Auth0](https://cdn.auth0.com/website/sdks/banner/node-auth0-banner.png) | ||
> Note: The domain should not include `https://` the ManagementClient will prepend that to the string. | ||
For other examples see the [EXAMPLES.md](https://github.com/auth0/node-auth0/blob/master/EXAMPLES.md) document. | ||
@@ -68,0 +70,0 @@ |
@@ -11,5 +11,6 @@ const { ArgumentError } = require('rest-facade'); | ||
} | ||
if (options.forwardedFor) { | ||
if (options.forwardedFor || options.requestLanguage) { | ||
params._requestCustomizer = function (req) { | ||
req.set('auth0-forwarded-for', options.forwardedFor); | ||
options.forwardedFor && req.set('auth0-forwarded-for', options.forwardedFor); | ||
options.requestLanguage && req.set('x-request-language', options.requestLanguage); | ||
}; | ||
@@ -218,2 +219,3 @@ } | ||
* @param {string} [options.forwardedFor] Value to be used for auth0-forwarded-for header | ||
* @param {string} [options.requestLanguage] Specify a language for the message area. | ||
* @param {Function} [cb] Method callback. | ||
@@ -275,2 +277,3 @@ * @returns {Promise|undefined} | ||
* @param {string} [options.forwardedFor] Value to be used for auth0-forwarded-for header | ||
* @param {string} [options.requestLanguage] Specify a language for the message area. | ||
* @param {Function} [cb] Method callback. | ||
@@ -277,0 +280,0 @@ * @returns {Promise|undefined} |
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
429952
11543
107