From 06e0e90677bee36a7a36bb1a9866edcc6186cf98 Mon Sep 17 00:00:00 2001 From: LandaMm Date: Sat, 24 May 2025 12:05:49 +0200 Subject: [PATCH] feat: return id --- internal/auth/routes.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/auth/routes.go b/internal/auth/routes.go index 626a9bb..047e076 100644 --- a/internal/auth/routes.go +++ b/internal/auth/routes.go @@ -126,6 +126,7 @@ func (h *AuthHandler) login(w http.ResponseWriter, r *http.Request) { // fields required for UI in account selector, e.g. email, full name and avatar FullName string `json:"full_name"` Email string `json:"email"` + Id string `json:"id"` // Avatar } @@ -134,6 +135,7 @@ func (h *AuthHandler) login(w http.ResponseWriter, r *http.Request) { RefreshToken: refreshToken, FullName: user.FullName, Email: user.Email, + Id: user.ID.String(), // Avatar }); err != nil { web.Error(w, "failed to encode response", http.StatusInternalServerError)