diff --git a/README-Phonegap.md b/README-Phonegap.md index f8f6df9..b985ecd 100644 --- a/README-Phonegap.md +++ b/README-Phonegap.md @@ -106,6 +106,8 @@ Now, setup your application index page. Here is a working example: var deviceready = function() { + var debug = true; + /* * Setup and install the ChildBrowser plugin to Phongap/Cordova. */ @@ -139,10 +141,12 @@ Now, setup your application index page. Here is a working example: authorization: "https://www.facebook.com/dialog/oauth", presenttoken: "qs" } - }); + }, {"debug": debug}); // For debugging purposes you can wipe existing cached tokens... // jso_wipe(); + + // jso_dump displays a list of cached tokens using console.log if debugging is enabled. jso_dump(); // Perform the protected OAuth calls. diff --git a/README.md b/README.md index 77dac72..01029db 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,10 @@ Current status is that the library is not well tested, due to lack of known prov Be aware of the cross-domain policy limitiations of browser. Check out CORS, JSONP, or consider proxying the requests from the browser through your own webserver. +If you want to use JSO together with Phonegap to support OAuth 2.0 in a hybrid web application, you may want to read the + +* [JSO Phonegap Guide](README-Phonegap.md) + ## Licence