-
Notifications
You must be signed in to change notification settings - Fork 493
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e4a1028
commit 46abe61
Showing
10 changed files
with
685 additions
and
517 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,21 +14,21 @@ For information on how to implement Passwordless Login with this SDK, please rea | |
|
||
### Log in to an organization | ||
|
||
To log in to a specific organization, pass the ID of the organization as the `organization` parameter when creating the `WebAuth` client: | ||
To log in to a specific organization, pass the ID, or name, of the organization as the `organization` parameter when creating the `WebAuth` client: | ||
|
||
```js | ||
var webAuth = new WebAuth({ | ||
domain: '{YOUR_AUTH0_DOMAIN}', | ||
clientID: '{YOUR_AUTH0_CLIENT_ID}', | ||
organization: '{YOUR_AUTH0_ORGANIZATION_ID}' | ||
organization: '{YOUR_AUTH0_ORGANIZATION_ID_OR_NAME}' | ||
}); | ||
``` | ||
|
||
You can also specify an organization when calling `authorize`: | ||
|
||
```js | ||
webAuth.authorize({ | ||
organization: '{YOUR_AUTH0_ORGANIZATION_ID}' | ||
organization: '{YOUR_AUTH0_ORGANIZATION_ID_OR_NAME}' | ||
}); | ||
``` | ||
|
||
|
@@ -66,7 +66,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 | ||
} | ||
); | ||
|
@@ -86,12 +86,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 | ||
} | ||
); | ||
|
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/** | ||
* auth0-js v9.21.0 | ||
* Author: Auth0 | ||
* Date: 2023-05-24 | ||
* Date: 2023-07-12 | ||
* License: MIT | ||
*/ | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.