<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <title>Mengautentikasi...</title>
</head>
<body>
    <div style="font-family: sans-serif; display: flex; justify-content: center; align-items: center; height: 100vh;">
        <p>Sedang menghubungkan ke Teratory, mohon tunggu...</p>
    </div>

    <script>
        // 1. Ambil token dari mesin Laravel (Blade)
        const ssoToken = "<?php echo e($token); ?>";

        // 2. Simpan token di brankas browser agar bisa dipakai terus tanpa login ulang
        if (ssoToken) {
            localStorage.setItem('teratory_sso_token', ssoToken);
            
            // 3. Langsung lempar ke Dashboard setelah token tersimpan
            window.location.href = "/dashboard";
        } else {
            // Jika token tidak ada, tendang kembali ke login
            window.location.href = "/login";
        }
    </script>
</body>
</html><?php /**PATH C:\xampp\htdocs\teratory\resources\views/auth/callback.blade.php ENDPATH**/ ?>