chore(keycloak): code cleanup

This commit is contained in:
Masaki Yatsu
2025-10-29 15:33:20 +09:00
parent fd0c359407
commit 82f90f621b
35 changed files with 613 additions and 599 deletions

View File

@@ -55,7 +55,9 @@ const main = async () => {
},
};
const existingMappers = await kcAdminClient.clients.listProtocolMappers({ id: client.id });
const existingMappers = await kcAdminClient.clients.listProtocolMappers({
id: client.id,
});
if (existingMappers.some((mapper) => mapper.name === mapperName)) {
console.warn(`Audience Mapper '${mapperName}' already exists for the client.`);