From fffc000bd73b740318762747c07aa39adca1313a Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 21 Oct 2015 18:58:22 -0400 Subject: stub in proxy --- StoneIsland/platforms/ios/www/js/sdk/auth.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'StoneIsland/platforms/ios/www/js/sdk/auth.js') diff --git a/StoneIsland/platforms/ios/www/js/sdk/auth.js b/StoneIsland/platforms/ios/www/js/sdk/auth.js index 911da902..cea0054c 100644 --- a/StoneIsland/platforms/ios/www/js/sdk/auth.js +++ b/StoneIsland/platforms/ios/www/js/sdk/auth.js @@ -10,26 +10,24 @@ var auth = (function(){ var auth = {} - auth.appname = "{API-TEST}" - auth.apikey = "{API-KEY}" + auth.appname = is_iphone ? "native-iphone-stoneisland/1.0.0" : "native-android-stoneisland/1.0.0" + auth.apikey = "U2FsdGVkX18fThqg9bF0/ZgE9Jg948hn8O9EXli4B2729nAESCQaexv//M5+7+za" auth.device = "smartphone" auth.access_token = "" auth.user_id = -1 - auth.name = name // ios: integrate keychain api // android: cordova.file.externalRootDirectory api - auth.set_user = function(user_id, access_token, name){ + auth.set_user = function(user_id, access_token){ // persist user data auth.user_id = user_id auth.access_token = access_token - auth.name = name } auth.get_user = function(cb){ // fetch user data } return auth -})() \ No newline at end of file +})() -- cgit v1.2.3-70-g09d2