Fix user delete flow 11

This commit is contained in:
Urtzi Alfaro
2025-08-03 00:16:31 +02:00
parent a65386e138
commit b35eb7c875
5 changed files with 985 additions and 30 deletions

View File

@@ -199,7 +199,8 @@ class AuthMiddleware(BaseHTTPMiddleware):
"user_id": payload["user_id"],
"email": payload["email"],
"exp": payload["exp"],
"valid": True
"valid": True,
"role": payload.get("role", "user"),
}
if payload.get("service"):