Merge branch 'patch-1' into 'master'

Fix README.md typo in example.

See merge request !1
This commit is contained in:
AJ ONeal 2017-03-24 06:02:55 +00:00
commit dd0b257038
1 changed files with 2 additions and 2 deletions

View File

@ -211,6 +211,7 @@ You can create a very simple demo application like this:
```javascript
var providerUri;
var opts = { client_uri: OAUTH3.utils.clientUri(window.location) };
// this is any OAuth3-compatible provider, such as oauth3.org
@ -218,7 +219,7 @@ var providerUri;
//
function onChangeProvider(_providerUri) {
providerUri = _providerUri;
return OAUTH3.discover(providerUri); // just to cache
return OAUTH3.discover(providerUri, opts); // just to cache
}
@ -226,7 +227,6 @@ function onChangeProvider(_providerUri) {
//
function onClickLogin() {
var opts = { client_uri: OAuth3.clientUri(window.location) };
return OAUTH3.implicitGrant(providerUri, opts).then(function (session) {
console.info('Authentication was Successful:');