@receiver(user_logged_out)
def revoke(sender, request, **kwargs):
    revoke_sudo_privileges(request)
Automatically revoke sudo privileges when logging out.
dataset/ETHPy150Open mattrobenolt/django-sudo/sudo/signals.py/revoke