def METHOD_NAME(
    self,
    db: orm.Session,
    session: sessions_models.DatabaseSession,
    **kwargs,
):
    if session.type == sessions_models.WorkspaceType.PERSISTENT:
        self._revoke_session_tokens(db, session)