From fab429fc741b3521578fe599f3626188a7be1f10 Mon Sep 17 00:00:00 2001 From: itzaname Date: Thu, 28 Nov 2024 23:09:53 -0500 Subject: [PATCH] Refine session user response --- auth.proto | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/auth.proto b/auth.proto index bf9eed6..081db19 100644 --- a/auth.proto +++ b/auth.proto @@ -5,7 +5,7 @@ option go_package = "git.itzana.me/strafesnet/go-grpc/auth"; package auth; service AuthService { - rpc GetSession(IdMessage) returns (SessionResponse); + rpc GetSessionUser(IdMessage) returns (SessionUserResponse); rpc GetGroupRole(IdMessage) returns (RoleReponse); rpc ValidateSession(IdMessage) returns (ValidateResponse); } @@ -14,12 +14,10 @@ message IdMessage { string SessionID = 1; } -message SessionResponse { - string SessionID = 1; - uint64 UserID = 2; - string Username = 3; - uint64 Created = 4; - uint64 Expires = 5; +message SessionUserResponse { + uint64 UserID = 1; + string Username = 2; + string AvatarURL = 3; } message RoleReponse {