Skip to content

Commit

Permalink
feat: add ForgotPassword and ResetPassword rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitiwat-owen committed Jan 9, 2024
1 parent 67a65b5 commit c92bda9
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions johnjud/auth/auth/v1/auth.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ service AuthService {
rpc SignUp(SignUpRequest) returns (SignUpResponse) {}
rpc SignIn(SignInRequest) returns (SignInResponse) {}
rpc SignOut(SignOutRequest) returns (SignOutResponse) {}
rpc ForgotPassword(ForgotPasswordRequest) returns (ForgotPasswordResponse) {}
rpc ResetPassword(ResetPasswordRequest) returns (ResetPasswordResponse) {}
}

message Credential{
Expand Down Expand Up @@ -75,3 +77,24 @@ message SignOutRequest {
message SignOutResponse {
bool isSuccess = 1;
}

// Forgot password

message ForgotPasswordRequest {
string email = 1;
}

message ForgotPasswordResponse {
string url = 1;
}

// Reset password

message ResetPasswordRequest {
string token = 1;
string password = 2;
}

message ResetPasswordResponse {
bool isSuccess = 1;
}

0 comments on commit c92bda9

Please sign in to comment.