feat: return id

This commit is contained in:
2025-05-24 12:05:49 +02:00
parent eaf3596580
commit 06e0e90677

View File

@ -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)