pub fn validate_token(
base_url: &str,
token: &str,
) -> Result<bool, Box<dyn Error>>Expand description
Check whether token works against base_url by hitting
/user. Returns Ok(true) for valid tokens, Ok(false)
for 401s, and Err for other transport / server errors so
callers can distinguish “tried and was rejected” from
“couldn’t reach the server”.