From b679976f7ab374433af62920df1a57ced012396d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= Date: Wed, 1 Aug 2012 16:05:01 +0200 Subject: [PATCH] adding some debug info and a link from main doc to phonegap docs --- README-Phonegap.md | 6 +++++- README.md | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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