Skip to content

Commit 7a8bbb5

Browse files
committed
reuse
1 parent ca5417c commit 7a8bbb5

File tree

1 file changed

+1
-5
lines changed
  • services/static-webserver/client/source/class/osparc/auth

1 file changed

+1
-5
lines changed

services/static-webserver/client/source/class/osparc/auth/Manager.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,7 @@ qx.Class.define("osparc.auth.Manager", {
117117
},
118118

119119
isLoggedIn: function() {
120-
// TODO: how to store this locally?? See http://www.qooxdoo.org/devel/pages/data_binding/stores.html#offline-store
121-
// TODO: check if expired??
122-
// TODO: request server if token is still valid (e.g. expired, etc)
123-
const auth = osparc.auth.Data.getInstance().getAuth();
124-
return auth !== null && auth instanceof osparc.io.request.authentication.Token;
120+
return osparc.auth.Data.getInstance().isLoggedIn();
125121
},
126122

127123
/*

0 commit comments

Comments
 (0)