Return tokens in the message body
All checks were successful
ci/woodpecker/push/go-generate Pipeline was successful
ci/woodpecker/push/dart-generate Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/js-generate Pipeline was successful
ci/woodpecker/push/repo-checks Pipeline was successful

Signed-off-by: Nikolai Rodionov <iam@allanger.xyz>
This commit is contained in:
2026-05-27 13:49:04 +02:00
parent cd658a5575
commit 64f50d06a8

View File

@@ -9,9 +9,9 @@ option go_package = "gitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg
*/
service PublicAccountsService {
// Sing in into an existing account
rpc SignIn (SignInRequest) returns (google.protobuf.Empty) {}
rpc SignIn (SignInRequest) returns (SignInResponse) {}
// Create a new account
rpc SignUp (SignUpRequest) returns (google.protobuf.Empty) {}
rpc SignUp (SignUpRequest) returns (SignUpResponse) {}
}
service AccountsService {
@@ -26,6 +26,12 @@ service RefreshSessionService {
rpc RefreshSession(RefreshSessionRequest) returns (RefreshSessionResponse) {}
}
message TokenPair {
string access_token = 1;
string refresh_token = 2;
}
message AccountPassword {
string password = 1;
}
@@ -46,11 +52,19 @@ message SignUpRequest {
PersonalData personal_data = 3;
}
message SignUpResponse {
TokenPair token_pair = 1;
}
message SignInRequest {
string email = 1;
string password = 2;
};
message SignInResponse {
TokenPair token_pair = 1;
}
message ResetPasswordRequest {
AccountData data = 1;
}
@@ -73,11 +87,6 @@ message RefreshTokenRequest {
string session_id = 1;
}
message TokenPair {
string access_token = 1;
string refresh_token = 2;
}
message RefreshSessionRequest {
string refresh_token = 1;
}