def on_deleted(self, doc): ''' :param doc: A deleted auth doc AKA a session :return: ''' # notify that the session has ended app.on_session_end(doc['user'], doc['_id'])
def on_deleted(self, doc): """ :param doc: A deleted auth doc AKA a session :return: """ # notify that the session has ended app.on_session_end(doc['user'], doc['_id'])
def on_deleted(self, doc): """Runs on delete of a session :param doc: A deleted auth doc AKA a session :return: """ # notify that the session has ended app.on_session_end(doc["user"], doc["_id"])
def on_deleted(self, doc): """Runs on delete of a session :param doc: A deleted auth doc AKA a session :return: """ # notify that the session has ended app.on_session_end(doc["user"], doc["_id"]) self.set_user_last_activity(doc["user"], done=True)
def on_deleted(self, doc): """Runs on delete of a session :param doc: A deleted auth doc AKA a session :return: """ # Clear the session data when session has ended flask.session.pop("session_token", None) # notify that the session has ended app.on_session_end(doc["user"], doc["_id"]) self.set_user_last_activity(doc["user"], done=True)