-
-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
Description
Problem
After #1922 removed /api/slm-auth/me, the canonical /api/auth/me endpoint returns:
{"username": "admin", "is_admin": true}The deleted slm_auth.py version also returned "user_type": "slm_admin". Any external consumer (non-frontend) that relied on this field from /api/slm-auth/me would lose it.
The SLM frontend (auth.ts:140) already used /api/auth/me and never consumed user_type, so no frontend breakage.
Location
autobot-slm-backend/api/auth.py, lines 136-144
Proposed Fix
Add user_type to the /me response if needed by any consumer:
return {
"username": current_user.get("sub"),
"is_admin": current_user.get("admin", False),
"user_type": "slm_admin",
}Or confirm no consumer depends on it and close as won't-fix.
Impact
Low — frontend unaffected, only potential external API consumers.
Discovered During
Reactions are currently unavailable