pub fn destroy_sessions(
    db: &Database,
    auth: &Auth
) -> Result<(), (i32, &'static str)>
Expand description

/sessions

destroys all entries in the user_session table in db owned by the User associated with auth

Returns Result

  • Ok(())
  • Err([StatusCode], [Message])