From 733704b628ef66a1a2a5db5ace31422c0b882562 Mon Sep 17 00:00:00 2001 From: rtkay123 Date: Sat, 2 Aug 2025 14:12:43 +0200 Subject: feat(users): get user --- lib/sellershut-core/proto/auth/auth.proto | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib/sellershut-core/proto/auth/auth.proto') diff --git a/lib/sellershut-core/proto/auth/auth.proto b/lib/sellershut-core/proto/auth/auth.proto index 65792bf..5271d15 100644 --- a/lib/sellershut-core/proto/auth/auth.proto +++ b/lib/sellershut-core/proto/auth/auth.proto @@ -39,6 +39,17 @@ message ValidationResponse { bool valid = 1; } +// Define a message for the result of a token validation +message GetPrivateKeyRequest { + // Indicates whether the token is valid + string email = 1; +} +// Define a message for the result of a token validation +message GetPrivateKeyResponse { + // Indicates whether the token is valid + string private_key = 1; +} + // Define a message for the result of a token validation message RegisterUserResponse { // Indicates whether the token is valid @@ -66,4 +77,6 @@ service Auth { rpc ValidateAuthToken (ValidationRequest) returns (ValidationResponse); // Register User rpc RegisterUser (RegisterUserRequest) returns (RegisterUserResponse); + // Register User + rpc GetPrivateKey (GetPrivateKeyRequest) returns (GetPrivateKeyResponse); } -- cgit v1.2.3