summaryrefslogtreecommitdiffstats
path: root/lib/sellershut-core/proto/auth
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sellershut-core/proto/auth')
-rw-r--r--lib/sellershut-core/proto/auth/auth.proto13
1 files changed, 13 insertions, 0 deletions
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
@@ -40,6 +40,17 @@ message ValidationResponse {
}
// 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
string profile_id = 1;
@@ -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);
}