Move refresh token to noAuth services
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user