add query in keycloak
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s

This commit is contained in:
Kanjana 2025-04-24 10:41:22 +07:00
parent d15aa488c1
commit 1d6224da73
2 changed files with 6 additions and 5 deletions

View file

@ -346,8 +346,8 @@ export async function removeUserRoles(userId: string, roles: { id: string; name:
return true;
}
export async function getGroup() {
const res = await fetch(`${KC_URL}/admin/realms/${KC_REALM}/groups?q`, {
export async function getGroup(query: string) {
const res = await fetch(`${KC_URL}/admin/realms/${KC_REALM}/groups?${query}`, {
headers: {
authorization: `Bearer ${await getToken()}`,
"content-type": `application/json`,