def unset_session(self):
    'Removes a user from the session and invalidates the auth token.'
    self._user = None
    data = self.get_session_data(pop=True)
    if data:
        self.store.delete_auth_token(data['user_id'], data['token'])
Removes a user from the session and invalidates the auth token.
def unset_session(self):
    
    self._user = None
    data = self.get_session_data(pop=True)
    if data:
        self.store.delete_auth_token(data['user_id'], data['token'])