pub async fn logout_session(db: &Db, token: &str) -> Result<()>Expand description
Convenience wrapper for the existing logout flow. Routes through
invalidate_sessions with SessionTarget::Single and
SessionInvalidationReason::Logout.
Looks up the session by the cookie token (fast path: token_hash;
fallback: plaintext for legacy 0.3.x sessions). Returns Ok(())
even when no row matches — logout is idempotent.