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.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/StoneIsland/www/js/sdk/auth.js b/StoneIsland/www/js/sdk/auth.js
index cea0054c..53ac310f 100644
--- a/StoneIsland/www/js/sdk/auth.js
+++ b/StoneIsland/www/js/sdk/auth.js
@@ -28,6 +28,13 @@ var auth = (function(){
auth.get_user = function(cb){
// fetch user data
}
+ auth.log_out = function(){
+ auth.user_id = -1
+ auth.access_token = ""
+ }
+ auth.logged_in = function(){
+ return (auth.user_id !== -1)
+ }
return auth
})()