-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Release 9.17.0 * Update idtoken-verifier
- Loading branch information
Steve Hobbs
authored
Oct 15, 2021
1 parent
c9e3e97
commit 35469ff
Showing
27 changed files
with
12,302 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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): | ||
|
@@ -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); | ||
} | ||
|
@@ -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 | ||
}); | ||
}); | ||
|
@@ -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 | ||
} | ||
); | ||
|
@@ -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 | ||
} | ||
); | ||
|
@@ -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 | ||
} | ||
); | ||
|
Oops, something went wrong.