Skip to content

Commit

Permalink
feat: MFA/TOTP_recover
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenSheep402 committed Oct 9, 2023
1 parent b3eb7fb commit be2ce16
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion proto/auth/v1/auth_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ service AuthService {
body: "*"
};
}
rpc RecoverTOTP(RecoverTOTPRequest) returns (RecoverTOTPResponse) {
option (google.api.http) = {
post: "/gapi/auth/v1/mfa/totp/recover",
body: "*"
};
}

}

message RegisterRequest {
Expand Down Expand Up @@ -125,4 +132,13 @@ message DisableTOTPResponse {}
message CheckTOTPRequest {
string totp_code = 1;
}
message CheckTOTPResponse {}
message CheckTOTPResponse {}

message RecoverTOTPRequest {
repeated string recovery_code= 1;
}

message RecoverTOTPResponse {
string new_secret_key = 1;
repeated string new_recovery_code = 2;
}

0 comments on commit be2ce16

Please sign in to comment.