Fix RLS permissions and JWT validation for admin club creation #5
@@ -175,11 +175,6 @@ app.MapGet("/api/debug/claims", (HttpContext context) =>
|
||||
hasAuthHeader = !string.IsNullOrEmpty(authHeader),
|
||||
authHeaderPrefix = authHeader?.Substring(0, Math.Min(20, authHeader?.Length ?? 0))
|
||||
});
|
||||
}).RequireAuthorization()
|
||||
.AddEndpointFilter(async (context, next) =>
|
||||
{
|
||||
// Skip tenant validation for debug endpoint
|
||||
return await next(context);
|
||||
});
|
||||
|
||||
app.MapTaskEndpoints();
|
||||
|
||||
Reference in New Issue
Block a user