Move refresh token to noAuth services

Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
This commit is contained in:
2026-05-07 19:16:49 +02:00
parent bdd97c0163
commit 9d5d53b696

View File

@@ -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;
}