Skip to content

Instantly share code, notes, and snippets.

@enyo
Last active October 1, 2021 08:35
Show Gist options
  • Save enyo/41e4053c100105bf88eb4a9330644027 to your computer and use it in GitHub Desktop.
Save enyo/41e4053c100105bf88eb4a9330644027 to your computer and use it in GitHub Desktop.
syntax = "proto3";
package dropzone.public_account;
import "shared.proto";
// Very simplified version of our account service.
service AccountService {
rpc SendEmailVerification(VerificationRequest) returns(shared.Empty);
rpc SignInWithPassword(PasswordSignInRequest) returns(User);
rpc ChangePassword(ChangePasswordRequest) returns(shared.Empty);
}
message VerificationRequest {
string email = 1;
string name = 2;
}
enum UserStatus { DISABLED = 0; ACTIVE = 1; }
message User {
string id = 1;
string name = 2;
string email = 3;
UserStatus status = 4;
}
message PasswordSignInRequest {
string email = 1;
string password = 2;
}
message ChangePasswordRequest {
string oldPassword = 1;
string newPassword = 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment