{% extends 'login/base_full.html' %}

{% load static %}
{% load i18n %}

{% block head %}
{{ block.super }}
<script>
"use strict";

let redirecting = false;

async function checkAuth() {
    if (redirecting) {
        console.debug(
            "authentik/policies/buffer: Already authenticating in another tab. This page will refresh once authentication is completed.",
        );

        return true;
    }

    const url = "{{ check_auth_url }}";
    console.debug("authentik/policies/buffer: Checking authen