forked from baron/baron-sso
style: apply backend go fmt and frontend biome auto-fixes
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user