Redirect to login when logging out

This commit is contained in:
Connor Wittman 2024-11-01 17:17:06 -04:00
parent 6aa933be09
commit e60243e50c

View File

@ -85,6 +85,7 @@ pub async fn logout() -> Result<(), ServerFnError> {
auth_session.logout().await
.map_err(|e| ServerFnError::<NoCustomError>::ServerError(format!("Error getting auth session: {}", e)))?;
leptos_axum::redirect("/login");
Ok(())
}