fix(keycloak): now return all roles

This commit is contained in:
Methapon Metanipat 2024-10-22 09:49:50 +07:00
parent 58cc2aaa14
commit 2dd6a48793

View file

@ -208,7 +208,7 @@ export async function deleteUser(userId: string) {
* Get roles list or specific role data
*/
export async function listRole() {
const res = await fetch(`${KC_URL}/admin/realms/${KC_REALM}/roles`, {
const res = await fetch(`${KC_URL}/admin/realms/${KC_REALM}/roles?max=-1`, {
headers: {
authorization: `Bearer ${await getToken()}`,
},