def checkAuth(self): # load from storage if self.authToken: return GNA = GeekNoteAuth() self.authToken = GNA.getToken()
def auth(self): GNA = GeekNoteAuth() self.authToken = GNA.getToken() userInfo = self.getUserInfo() if not isinstance(userInfo, object): logging.error("User info not get") return False self.getStorage().createUser(self.authToken, userInfo) return True