From 144a3ecb4f610879c12dd10c31a7e310755e4781 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 24 Nov 2015 20:18:57 -0500 Subject: update profile --- StoneIsland/www/js/sdk/auth.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (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 1fbf48ec..8a72dd46 100644 --- a/StoneIsland/www/js/sdk/auth.js +++ b/StoneIsland/www/js/sdk/auth.js @@ -26,11 +26,17 @@ var auth = sdk.auth = (function(){ auth.init = function(fn){ console.log("AUTH INIT") auth.get_user(function(){ - console.log("cool") if (auth.logged_in()) { + sdk.account.checkin({ + success: function(data){ + fn && fn( auth.logged_in() ) + } + }) auth.get_cart() } - fn && fn( auth.logged_in() ) + else { + fn && fn( auth.logged_in() ) + } }) } -- cgit v1.2.3-70-g09d2