pub fn auth<E: Into<BoxError>>( e: Option<E>, kind: AuthErrorKind, message: &str, ) -> Error
builds an error for instances where authentication fails and no access token can be obtained