1
0
forked from baron/baron-sso

style: apply backend go fmt and frontend biome auto-fixes

This commit is contained in:
2026-03-27 17:52:39 +09:00
parent 2383c6a6be
commit 5ae0e19e31
6 changed files with 142 additions and 61 deletions

View File

@@ -216,7 +216,7 @@ func (h *AuthHandler) CheckLoginID(c *fiber.Ctx) error {
if err != nil {
return errorJSON(c, fiber.StatusServiceUnavailable, "Identity provider unavailable")
}
if exists {
return c.JSON(fiber.Map{"available": false, "message": "ID already registered"})
}
@@ -4058,7 +4058,8 @@ func (h *AuthHandler) resolveCurrentProfile(c *fiber.Ctx) (*domain.UserProfileRe
// Fallback to Hydra introspection. This is expected for API calls using Bearer tokens.
slog.Debug("Kratos cookie session absent, falling back to Hydra token", "error", err.Error())
profile, err = h.getHydraProfile(c.Context(), token)
} } else if cookie != "" {
}
} else if cookie != "" {
profile, err = h.getKratosProfileWithCookie(cookie)
}
}