pub fn validate_token( base_url: &str, token: &str, ) -> Result<bool, Box<dyn Error>>
Check whether a token is valid by calling GET /api/v4/user.
GET /api/v4/user