diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-09 01:48:51 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-09 01:48:51 -0500 |
| commit | 9cb9177accbbf6e4397cc71bc06dff0ccd47f441 (patch) | |
| tree | 8f1c1ab7e78da7ecace35db86f14b38119d87e1d /StoneIsland/www/js/sdk/auth.js | |
| parent | dad5f3f0c3c13e8334a6a0ea522c5a2bfe8cd830 (diff) | |
login view
Diffstat (limited to 'StoneIsland/www/js/sdk/auth.js')
| -rw-r--r-- | StoneIsland/www/js/sdk/auth.js | 7 |
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 })() |
