Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3531927
D4747.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
923 B
Referenced Files
None
Subscribers
None
D4747.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 8:28 AM (11 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2704607
Default Alt Text
D4747.diff (923 B)
Attached To
Mode
D4747: [native] add verify_user_token client method
Attached
Detach File
Event Timeline
Log In to Comment