 attempts;

    if (timeout >= 2000) {
        timeout = 2000;
    }
}

document.addEventListener("visibilitychange", async () => {
    if (document.hidden) return;

    console.debug("authentik/policies/buffer: Checking authentication on tab activate...");

    redirecting = await checkAuth();
});

main();
</script>
{% endblock %}

{% block title %}
{% trans 'Waiting for authentication...' %} - {{ brand.branding_title }}
{% endblock %}

{% block card_title %}
{% trans 'Waiting for authentication...' %}
{% 