From 028174b202c8ff8ed62b7e008f42a1f39797ce9d Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 25 Sep 2015 15:07:12 -0400 Subject: cart --- StoneIsland/www/js/sdk/auth.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'StoneIsland/www/js/sdk/auth.js') diff --git a/StoneIsland/www/js/sdk/auth.js b/StoneIsland/www/js/sdk/auth.js index a8489b5d..911da902 100644 --- a/StoneIsland/www/js/sdk/auth.js +++ b/StoneIsland/www/js/sdk/auth.js @@ -16,11 +16,16 @@ var auth = (function(){ auth.access_token = "" auth.user_id = -1 + auth.name = name - // integrate keychain/cordova.file.externalRootDirectory api + // ios: integrate keychain api + // android: cordova.file.externalRootDirectory api auth.set_user = function(user_id, access_token, name){ // persist user data + auth.user_id = user_id + auth.access_token = access_token + auth.name = name } auth.get_user = function(cb){ // fetch user data -- cgit v1.2.3-70-g09d2