Keycloak Admin Client compiled in CommonJS. This can be used in NestJS projects.
npm install @itstor/keycloak-admin-client-commonjsThis lib exports the @keycloak/keycloak-admin-client
(an ECMA Script module) as a CommonJS module so it can be used in NestJS.
This repo is based on an idea by Manuelbaun on this issue https://github.com/keycloak/keycloak-nodejs-admin-client/issues/523
The version number of this repo will follow the version number of @keycloak/keycloak-admin-client.
``shell`
npm i @itstor/keycloak-admin-client-cjs
`ts
import { KeycloakAdminClient } from "@itstor/keycloak-admin-client-cjs";
@Injectable()
export class KeycloakService {
private readonly kcAdminClient: KeycloakAdminClient;
constructor(logger: LoggingService) {
this.log = logger.getLogger(KeycloackService.name);
this.kcAdminClient = new KeycloakAdminClient();
}
}
``