fix: surface DB error when team login refresh token issuance fails

Return err.Error() in the response so operators see e.g. missing
team_refresh_tokens table instead of a generic message.

Made-with: Cursor
This commit is contained in:
Yared Yemane 2026-04-18 03:13:34 -07:00
parent 24f1aca97a
commit 3e54b5039d

View File

@ -153,7 +153,7 @@ func (h *Handler) TeamMemberLogin(c *fiber.Ctx) error {
) )
return c.Status(fiber.StatusInternalServerError).JSON(domain.ErrorResponse{ return c.Status(fiber.StatusInternalServerError).JSON(domain.ErrorResponse{
Message: "Failed to login", Message: "Failed to login",
Error: "Failed to issue refresh token", Error: err.Error(),
}) })
} }