XThomasBU
login_app_initial
c3cd73e
raw
history blame
563 Bytes
<!DOCTYPE html>
<html>
<head>
<title>Logout</title>
<script>
window.onload = function() {
fetch('/chainlit_tutor/logout', {
method: 'POST',
credentials: 'include' // Ensure cookies are sent
}).then(() => {
window.location.href = '/';
}).catch(error => {
console.error('Logout failed:', error);
});
};
</script>
</head>
<body>
<p>Logging out... If you are not redirected, <a href="/">click here</a>.</p>
</body>
</html>