auth0 3.4.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +2 -0
- package/package.json +1 -1
- package/src/auth/PasswordlessAuthenticator.js +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [v3.5.0](https://github.com/auth0/node-auth0/tree/v3.5.0) (2023-06-26)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/auth0/node-auth0/compare/v3.4.0...v3.5.0)
|
|
6
|
+
|
|
7
|
+
**Added**
|
|
8
|
+
|
|
9
|
+
- Add option to pass x-request-language header for passwordless [\#873](https://github.com/auth0/node-auth0/pull/873) ([adamjmcgrath](https://github.com/adamjmcgrath))
|
|
10
|
+
|
|
3
11
|
## [v3.4.0](https://github.com/auth0/node-auth0/tree/v3.4.0) (2023-05-05)
|
|
4
12
|
|
|
5
13
|
[Full Changelog](https://github.com/auth0/node-auth0/compare/v3.3.0...v3.4.0)
|
package/README.md
CHANGED
|
@@ -63,6 +63,8 @@ var management = new ManagementClient({
|
|
|
63
63
|
});
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
+
> Note: The domain should not include `https://` the ManagementClient will prepend that to the string.
|
|
67
|
+
|
|
66
68
|
For other examples see the [EXAMPLES.md](https://github.com/auth0/node-auth0/blob/master/EXAMPLES.md) document.
|
|
67
69
|
|
|
68
70
|
## API Reference
|
package/package.json
CHANGED
|
@@ -8,9 +8,10 @@ function getParamsFromOptions(options) {
|
|
|
8
8
|
if (!options || typeof options !== 'object') {
|
|
9
9
|
return params;
|
|
10
10
|
}
|
|
11
|
-
if (options.forwardedFor) {
|
|
11
|
+
if (options.forwardedFor || options.requestLanguage) {
|
|
12
12
|
params._requestCustomizer = function (req) {
|
|
13
|
-
req.set('auth0-forwarded-for', options.forwardedFor);
|
|
13
|
+
options.forwardedFor && req.set('auth0-forwarded-for', options.forwardedFor);
|
|
14
|
+
options.requestLanguage && req.set('x-request-language', options.requestLanguage);
|
|
14
15
|
};
|
|
15
16
|
}
|
|
16
17
|
return params;
|
|
@@ -214,6 +215,7 @@ class PasswordlessAuthenticator {
|
|
|
214
215
|
* @param {string} userData.send The type of email to be sent.
|
|
215
216
|
* @param {object} [options] Additional options.
|
|
216
217
|
* @param {string} [options.forwardedFor] Value to be used for auth0-forwarded-for header
|
|
218
|
+
* @param {string} [options.requestLanguage] Specify a language for the message area.
|
|
217
219
|
* @param {Function} [cb] Method callback.
|
|
218
220
|
* @returns {Promise|undefined}
|
|
219
221
|
*/
|
|
@@ -270,6 +272,7 @@ class PasswordlessAuthenticator {
|
|
|
270
272
|
* @param {string} userData.phone_number User phone number.
|
|
271
273
|
* @param {object} [options] Additional options.
|
|
272
274
|
* @param {string} [options.forwardedFor] Value to be used for auth0-forwarded-for header
|
|
275
|
+
* @param {string} [options.requestLanguage] Specify a language for the message area.
|
|
273
276
|
* @param {Function} [cb] Method callback.
|
|
274
277
|
* @returns {Promise|undefined}
|
|
275
278
|
*/
|