fix(auth): classify services by service_type, not name heuristics

Coolify exposes the template slug on `service_type`; the list endpoint
returns only summaries, so the auth list handler now fetches each
service individually to classify it reliably. Users can name auth
services anything (e.g. "my-login") and they still show up as auth
providers.

Made-with: Cursor
This commit is contained in:
2026-04-21 12:37:21 -07:00
parent 62c52747f5
commit de1cd96ec2
2 changed files with 19 additions and 11 deletions

View File

@@ -560,6 +560,8 @@ export interface CoolifyService {
uuid: string;
name: string;
status?: string;
/** Coolify template slug the service was provisioned from, e.g. "pocketbase". */
service_type?: string;
project_uuid?: string;
environment_id?: number;
environment?: { id?: number; project_uuid?: string; project?: { uuid?: string } };