Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions api/auth/external/auth_api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ service AuthAPI {
rpc SignIn(SignInRequest) returns (SignInResponse);
// RefreshSession refreshes session timeout.
rpc RefreshSession(RefreshSessionRequest) returns (RefreshSessionResponse);
// ResetPassword initiates user's password reset procedure.
rpc ResetPassword(ResetPasswordRequest) returns (ResetPasswordResponse);
}

message SignUpRequest {
Expand Down Expand Up @@ -62,3 +64,14 @@ message RefreshSessionResponse {
// Session expiration time.
google.protobuf.Timestamp expire_time = 1;
}

message ResetPasswordRequest {
// User email.
string email = 1 [
(validator.field) = {
string_not_empty: true
}
];
}

message ResetPasswordResponse {}
165 changes: 139 additions & 26 deletions gen/auth/external/auth_api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions gen/auth/external/auth_api.validator.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.