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:
parent
24f1aca97a
commit
3e54b5039d
|
|
@ -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(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user