We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88020eb commit 109fe2eCopy full SHA for 109fe2e
‎backend/services/user_management_service.py‎
@@ -97,10 +97,8 @@ async def check_auth_service_health():
97
raise ConnectionError("Auth service is unavailable")
98
99
data = await response.json()
100
- # Check if the service is available by checking if the response contains the name field and its value is "GoTrue"
101
- is_available = data and data.get("name") == "GoTrue"
102
-
103
- if not is_available:
+ # Check if the service is available by verifying the name field equals "GoTrue"
+ if not data or data.get("name") != "GoTrue":
104
logging.error("Auth service is unavailable")
105
106
0 commit comments