summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/sdk/auth.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-09-25 14:52:44 -0400
committerJules Laplace <jules@okfoc.us>2015-09-25 14:52:44 -0400
commit365e6c93c1a57bb45d2ea274218378f642b4d425 (patch)
tree6b22b1a9e26a9fa8883e3148f0547dbb3404cd7e /StoneIsland/www/js/sdk/auth.js
parent7acf0f1f7f7af782981e6001370f46c4dd7460d2 (diff)
split up api
Diffstat (limited to 'StoneIsland/www/js/sdk/auth.js')
-rw-r--r--StoneIsland/www/js/sdk/auth.js14
1 files changed, 14 insertions, 0 deletions
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