#include "middleware.hpp"
#include <middlewares/auth.hpp>
namespace sample::grpc::auth::client {
void ApplyCredentials(::grpc::ClientContext& context) {
context.AddMetadata(kKey, kCredentials);
}
Middleware::Middleware() = default;
Middleware::~Middleware() = default;
}
MiddlewareFactory::~MiddlewareFactory() = default;
std::shared_ptr<const Middleware::MiddlewareBase>
MiddlewareFactory::GetMiddleware(std::string_view) const {
return std::make_shared<Middleware>();
}
}