From 365e6c93c1a57bb45d2ea274218378f642b4d425 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 25 Sep 2015 14:52:44 -0400 Subject: split up api --- StoneIsland/www/js/sdk/auth.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 StoneIsland/www/js/sdk/auth.js (limited to 'StoneIsland/www/js/sdk/auth.js') diff --git a/StoneIsland/www/js/sdk/auth.js b/StoneIsland/www/js/sdk/auth.js new file mode 100644 index 00000000..d2375aca --- /dev/null +++ b/StoneIsland/www/js/sdk/auth.js @@ -0,0 +1,14 @@ +sdk.auth = (function(){ + var auth = {} + + // integrate keychain/cordova.file.externalRootDirectory api + + auth.set_user = function(access_token, api_key){ + // persist user data + } + auth.get_user = function(cb){ + // fetch user data + } + + return auth +})() \ No newline at end of file -- cgit v1.2.3-70-g09d2