From e8cafbf92132f2ae575c28ed20579a60d739c381 Mon Sep 17 00:00:00 2001 From: Mark Nadal Date: Sun, 19 Feb 2017 04:48:46 +0000 Subject: [PATCH] Fix README.md typo in example. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 78cb34c..045d2aa 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,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 @@ -110,7 +111,7 @@ var providerUri; // function onChangeProvider(_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() { - var opts = { client_uri: OAuth3.clientUri(window.location) }; return OAUTH3.implicitGrant(providerUri, opts).then(function (session) { console.info('Authentication was Successful:');