Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 9.17.0 #1216

Merged
merged 2 commits into from
Oct 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ lib-cov
*.out
*.pid
*.gz

pids
logs
results
Expand All @@ -24,7 +24,6 @@ release
.DS_Store

build
dist

.gitignore
coverage
Expand Down
2 changes: 1 addition & 1 deletion .shiprc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"src/version.js": [],
"README.md": []
},
"postbump": "npm run build && git add -f dist/ && node scripts/jsdocs.js"
"postbump": "npm run build && node scripts/jsdocs.js"
}
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
## [v9.17.0](https://github.com/auth0/auth0.js/tree/v9.17.0) (2021-10-15)

[Full Changelog](https://github.com/auth0/auth0.js/compare/v9.16.4...v9.17.0)

**Added**

- Add `xRequestLanguage`, which sends X-Request-Language header to `/passwordless/start` [\#1210](https://github.com/auth0/auth0.js/pull/1210) ([stevehobbsdev](https://github.com/stevehobbsdev))

**Fixed**

- Check window object only if it is options.hash is not set [\#1209](https://github.com/auth0/auth0.js/pull/1209) ([FDiskas](https://github.com/FDiskas))

## [v9.16.4](https://github.com/auth0/auth0.js/tree/v9.16.4) (2021-08-26)

[Full Changelog](https://github.com/auth0/auth0.js/compare/v9.16.3...v9.16.4)

**Fixed**

- Fix: Passwordless Verify [\#1202](https://github.com/auth0/auth0.js/pull/1202) ([seanaye](https://github.com/seanaye))

## [v9.16.3](https://github.com/auth0/auth0.js/tree/v9.16.3) (2021-08-24)

[Full Changelog](https://github.com/auth0/auth0.js/compare/v9.16.2...v9.16.3)
Expand Down Expand Up @@ -885,7 +899,7 @@ var auth0 = new auth0.WebAuth({
And if you ever need to perform an `xhr` request to Auth0 Authentication API, `WebAuth` exposes an instance of `AuthenticationAPI`

```js
auth0.client.userInfo(accessToken, function(error, userInfo) {
auth0.client.userInfo(accessToken, function (error, userInfo) {
// User information or error
});
```
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ From CDN:

```html
<!-- Latest patch release -->
<script src="https://cdn.auth0.com/js/auth0/9.16.4/auth0.min.js"></script>
<script src="https://cdn.auth0.com/js/auth0/9.17.0/auth0.min.js"></script>
```

From [npm](https://npmjs.org):
Expand Down Expand Up @@ -101,7 +101,7 @@ Parses a URL hash fragment to extract the result of an Auth0 authentication resp
**Note:** This method requires that your tokens are signed with **RS256**. Please check our [Migration Guide](https://auth0.com/docs/libraries/auth0js/v8/migration-guide#switching-from-hs256-to-rs256) for more information.

```js
auth0.parseHash({ hash: window.location.hash }, function(err, authResult) {
auth0.parseHash({ hash: window.location.hash }, function (err, authResult) {
if (err) {
return console.log(err);
}
Expand All @@ -112,7 +112,7 @@ auth0.parseHash({ hash: window.location.hash }, function(err, authResult) {
// authResult.expiresIn - string with the access token's expiration time in seconds
// authResult.idToken - ID token JWT containing user profile information

auth0.client.userInfo(authResult.accessToken, function(err, user) {
auth0.client.userInfo(authResult.accessToken, function (err, user) {
// Now you have the user's information
});
});
Expand All @@ -130,7 +130,7 @@ auth0.checkSession(
audience: 'https://mystore.com/api/v2',
scope: 'read:order write:order'
},
function(err, authResult) {
function (err, authResult) {
// Authentication tokens or error
}
);
Expand All @@ -157,7 +157,7 @@ auth0.client.login(
audience: 'https://mystore.com/api/v2',
scope: 'read:order write:order'
},
function(err, authResult) {
function (err, authResult) {
// Auth tokens in the result or an error
}
);
Expand All @@ -177,12 +177,12 @@ auth0.client.login(
realm: 'Username-Password-Authentication', //connection name or HRD domain
username: '[email protected]',
password: 'areallystrongpassword',
onRedirecting: function(done) {
onRedirecting: function (done) {
// Your custom code here
done();
}
},
function(err, authResult) {
function (err, authResult) {
// Auth tokens in the result or an error
}
);
Expand Down
Loading