feat(BE): sso delete and fix response too many request

This commit is contained in:
ragilap
2026-01-02 12:04:50 +07:00
parent fe51f33ab4
commit cc5a58b6d1
4 changed files with 273 additions and 2 deletions
@@ -171,6 +171,9 @@ func (h *Controller) Refresh(c *fiber.Ctx) error {
if resp.StatusCode >= 400 {
utils.Log.Warnf("token refresh response status %d", resp.StatusCode)
if resp.StatusCode == fiber.StatusTooManyRequests {
return fiber.NewError(fiber.StatusTooManyRequests, "Too many attempts, please slow down")
}
return fiber.NewError(fiber.StatusUnauthorized, "unauthenticated")
}