diff --git a/native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs b/native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs --- a/native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs +++ b/native/cpp/CommonCpp/grpc/grpc_client/src/lib.rs @@ -6,7 +6,7 @@ use identity::{ get_user_id_request::AuthType, identity_service_client::IdentityServiceClient, GetUserIdRequest, - GetUserIdResponse, + GetUserIdResponse, VerifyUserTokenRequest, VerifyUserTokenResponse, }; pub mod identity { tonic::include_proto!("identity"); @@ -53,4 +53,20 @@ }) .await } + + async fn verify_user_token( + &mut self, + user_id: String, + device_id: String, + access_token: String, + ) -> Result, Status> { + self + .identity_client + .verify_user_token(VerifyUserTokenRequest { + user_id, + device_id, + access_token, + }) + .await + } }