Page MenuHomePhabricator

D4747.id15421.diff
No OneTemporary

D4747.id15421.diff

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<Response<VerifyUserTokenResponse>, Status> {
+ self
+ .identity_client
+ .verify_user_token(VerifyUserTokenRequest {
+ user_id,
+ device_id,
+ access_token,
+ })
+ .await
+ }
}

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 8:02 PM (10 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2704607
Default Alt Text
D4747.id15421.diff (923 B)

Event Timeline