Skip to content

Commit

Permalink
Release 9.17.0 (#1216)
Browse files Browse the repository at this point in the history
* Release 9.17.0

* Update idtoken-verifier
  • Loading branch information
Steve Hobbs authored Oct 15, 2021
1 parent c9e3e97 commit 35469ff
Show file tree
Hide file tree
Showing 27 changed files with 12,302 additions and 75 deletions.
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

0 comments on commit 35469ff

Please sign in to comment.