---
import Layout from "../layouts/Layout.astro";
const title = "Authenticating...";
---

<html lang="en" data-theme="dark">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>{title} | IEEE UCSD</title>
        <link rel="icon" type="image/x-icon" href="/favicon.ico" />
    </head>
    <body class="bg-base-200">
        <main class="min-h-screen flex items-center justify-center">
            <div id="content" class="text-center">
                <p class="text-2xl font-medium">Redirecting to dashboard...</p>
                <div class="mt-4">
                    <div class="loading loading-spinner loading-lg"></div>
                </div>
            </div>
        </main>
        <script>
            import { RedirectHandler } from "../scripts/auth/RedirectHandler";
            new RedirectHandler();
        </script>
    </body>
</html>
