Merge branch 'patch-1' into 'master'
Fix README.md typo in example. See merge request !1
This commit is contained in:
commit
dd0b257038
|
@ -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:');
|
||||
|
|
Loading…
Reference in New Issue