Fix README.md typo in example.
This commit is contained in:
parent
460274017b
commit
e8cafbf921
|
@ -103,6 +103,7 @@ You can create a very simple demo application like this:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var providerUri;
|
var providerUri;
|
||||||
|
var opts = { client_uri: OAUTH3.utils.clientUri(window.location) };
|
||||||
|
|
||||||
|
|
||||||
// this is any OAuth3-compatible provider, such as oauth3.org
|
// this is any OAuth3-compatible provider, such as oauth3.org
|
||||||
|
@ -110,7 +111,7 @@ var providerUri;
|
||||||
//
|
//
|
||||||
function onChangeProvider(_providerUri) {
|
function onChangeProvider(_providerUri) {
|
||||||
providerUri = _providerUri;
|
providerUri = _providerUri;
|
||||||
return OAUTH3.discover(providerUri); // just to cache
|
return OAUTH3.discover(providerUri, opts); // just to cache
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -118,7 +119,6 @@ function onChangeProvider(_providerUri) {
|
||||||
//
|
//
|
||||||
function onClickLogin() {
|
function onClickLogin() {
|
||||||
|
|
||||||
var opts = { client_uri: OAuth3.clientUri(window.location) };
|
|
||||||
return OAUTH3.implicitGrant(providerUri, opts).then(function (session) {
|
return OAUTH3.implicitGrant(providerUri, opts).then(function (session) {
|
||||||
|
|
||||||
console.info('Authentication was Successful:');
|
console.info('Authentication was Successful:');
|
||||||
|
|
Loading…
Reference in New Issue