ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • GET /api/debug/my-role Afficher les infos de l'utilisateur connecté (debug)

      Returns Promise<
          | NextResponse<{ authenticated: boolean; message: string }>
          | NextResponse<
              {
                  authenticated: boolean;
                  user: {
                      id: string
                      | undefined;
                      email: string | undefined;
                      name: string | null | undefined;
                      roleId: string | undefined;
                      roleName: string | undefined;
                      status: UserStatus | undefined;
                  };
                  session: {
                      email: string;
                      name: string;
                      roleName: string
                      | null
                      | undefined;
                  };
                  hasAccessToSecurity: boolean;
              },
          >
          | NextResponse<{ error: string }>,
      >