10 lines
212 B
Rust
10 lines
212 B
Rust
//! gRPC interceptors
|
|
|
|
use tonic::{Request, Status};
|
|
|
|
/// Authentication interceptor
|
|
pub fn auth_interceptor(req: Request<()>) -> Result<Request<()>, Status> {
|
|
// TODO: Implement authentication
|
|
Ok(req)
|
|
}
|