//! Admin Logout Server Function
//!
//! Clears the admin authentication cookie to log out the user.
use ;
use build_admin_auth_cookie_clear;
use ServerFnRequest;
/// Log out the current admin user by clearing the authentication cookie.
///
/// Sets a `Max-Age=0` cookie to instruct the browser to delete the
/// `reinhardt_admin_token` cookie.
///
/// # Example
///
/// ```ignore
/// use reinhardt_admin::server::logout::admin_logout;
///
/// admin_logout().await?;
/// // Browser deletes the auth cookie, subsequent requests are unauthenticated
/// ```
pub async