summaryrefslogtreecommitdiffstats
path: root/crates/auth/src/server/grpc/interceptor.rs
diff options
context:
space:
mode:
authorrtkay123 <dev@kanjala.com>2025-07-26 18:42:32 +0200
committerrtkay123 <dev@kanjala.com>2025-07-26 18:42:32 +0200
commit236876f1d0539ac22a3977fd8599933725ad0f90 (patch)
tree5c216d71ac065621348ce05e7c6c7f7ce81c85d3 /crates/auth/src/server/grpc/interceptor.rs
parentcf77963db4f2b55048d725bd6250a490b0b82d64 (diff)
downloadsellershut-236876f1d0539ac22a3977fd8599933725ad0f90.tar.bz2
sellershut-236876f1d0539ac22a3977fd8599933725ad0f90.zip
feat(auth): create user
Diffstat (limited to 'crates/auth/src/server/grpc/interceptor.rs')
-rw-r--r--crates/auth/src/server/grpc/interceptor.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/crates/auth/src/server/grpc/interceptor.rs b/crates/auth/src/server/grpc/interceptor.rs
index 6fbe7fa..155a306 100644
--- a/crates/auth/src/server/grpc/interceptor.rs
+++ b/crates/auth/src/server/grpc/interceptor.rs
@@ -1,6 +1,12 @@
-use tonic::{Status, service::Interceptor};
+use tonic::{
+ Status,
+ service::{Interceptor, interceptor::InterceptedService},
+ transport::Channel,
+};
use tracing::Span;
+pub type Intercepted = InterceptedService<Channel, MyInterceptor>;
+
#[derive(Clone, Copy)]
pub struct MyInterceptor;