summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/sdk/auth.js
diff options
context:
space:
mode:
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