Fix return type of clients.findRole() in @keycloak/keycloak-admin-client (#27429) (#30882)

Closes #27444

Signed-off-by: Simon Hanna <simon.hanna@aeb.com>
(cherry picked from commit 401e1bd636)

Co-authored-by: Simon Hanna <33220646+simhnna@users.noreply.github.com>
This commit is contained in:
Jon Koops
2024-06-27 16:14:34 +02:00
committed by GitHub
parent d618a27283
commit 3e426267b6
2 changed files with 3 additions and 3 deletions

View File

@@ -34,10 +34,10 @@ export default function CreateClientRole() {
...role,
});
const createdRole = await adminClient.clients.findRole({
const createdRole = (await adminClient.clients.findRole({
id: clientId!,
roleName: role.name!,
});
}))!;
addAlert(t("roleCreated"), AlertVariant.success);
navigate(

View File

@@ -113,7 +113,7 @@ export class Clients extends Resource<{ realm?: string }> {
public findRole = this.makeRequest<
{ id: string; roleName: string },
RoleRepresentation
RoleRepresentation | null
>({
method: "GET",
path: "/{id}/roles/{roleName}",