pub fn logout(
    db: &Database,
    refresh_token: Option<&str>
) -> Result<(), (i32, &'static str)>
Expand description

/logout If this is successful, delete the cookie storing the refresh token

Returns Result

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