parameters: (self)
docstring: Removes a user from the session and invalidates the auth token.
docstring_summary: Removes a user from the session and invalidates the auth token.
docstring_tokens: Removes a user from the session and invalidates the auth token .
function: 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:
              # Invalidate current token.
              self.store.delete_auth_token(data['user_id'], data['token'])
function_tokens: def unset_session ( self ) : self . _user = None data = self . get_session_data ( pop = True ) if data : # Invalidate current token. self . store . delete_auth_token ( data [ 'user_id' ] , data [ 'token' ] )