From 1b358c931cc84c5a8786fd2f6816ca0181637031 Mon Sep 17 00:00:00 2001 From: Supra4E8C Date: Fri, 19 Dec 2025 12:15:22 +0800 Subject: [PATCH] fix: restore get-auth-status ok fallback and document it --- internal/api/handlers/management/auth_files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/handlers/management/auth_files.go b/internal/api/handlers/management/auth_files.go index 433bae92..bf5a5b9c 100644 --- a/internal/api/handlers/management/auth_files.go +++ b/internal/api/handlers/management/auth_files.go @@ -2182,7 +2182,7 @@ func checkCloudAPIIsEnabled(ctx context.Context, httpClient *http.Client, projec func (h *Handler) GetAuthStatus(c *gin.Context) { state := strings.TrimSpace(c.Query("state")) if state == "" { - c.JSON(http.StatusBadRequest, gin.H{"status": "error", "error": "state is required"}) + c.JSON(http.StatusOK, gin.H{"status": "ok"}) return } if err := ValidateOAuthState(state); err != nil {