Skip to content

Instantly share code, notes, and snippets.

@enyo
Last active Oct 1, 2021
Embed
What would you like to do?
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