From 9d5d53b6964bc8bc05f03d05564aec2e04c8f9c6 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Thu, 7 May 2026 19:16:49 +0200 Subject: [PATCH] Move refresh token to noAuth services Signed-off-by: Nikolai Rodionov --- proto/accounts/v1/accounts_v1.proto | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/proto/accounts/v1/accounts_v1.proto b/proto/accounts/v1/accounts_v1.proto index 200ac3b..27c0349 100644 --- a/proto/accounts/v1/accounts_v1.proto +++ b/proto/accounts/v1/accounts_v1.proto @@ -12,6 +12,8 @@ service AccountsNoAuthService { rpc SignIn (SignInRequest) returns (google.protobuf.Empty) {} // Create a new account rpc SignUp (SignUpRequest) returns (google.protobuf.Empty) {} + // RefreshToken doesn't use regular auth methods + rpc RefreshToken (RefreshTokenRequest) returns (google.protobuf.Empty) {} } /** @@ -21,7 +23,6 @@ service AccountsNoAuthService { service AccountsAuthService { // Is email for the current account verified rpc IsEmailVerified (IsEmailVerifiedRequest) returns (IsEmailVerifiedResponse) {} - rpc RefreshToken (google.protobuf.Empty) returns (google.protobuf.Empty) {} } message AccountPassword { @@ -60,3 +61,7 @@ message IsEmailVerifiedRequest { message IsEmailVerifiedResponse { bool verified = 1; } + +message RefreshTokenRequest { + string session_id = 1; +}