syntax = "proto3"; package auth; option go_package = "argus-core/rpc/auth"; service AuthService { rpc Register(RegisterRequest) returns (RegisterResponse); rpc Login(LoginRequest) returns (LoginResponse); rpc ValidateToken(ValidateTokenRequest) returns (ValidateTokenResponse); } message RegisterRequest { string email = 1; string password = 2; } message RegisterResponse { User user = 1; } message LoginRequest { string email = 1; string password = 2; } message LoginResponse { string token = 1; User user = 2; } message ValidateTokenRequest { string token = 1; } message ValidateTokenResponse { User user = 1; } message User { string id = 1; string email = 2; string created_at = 3; string updated_at = 4; }