diff --git a/src/runtime/server/lib/oauth/keycloak.ts b/src/runtime/server/lib/oauth/keycloak.ts index 790903a7..5b11c597 100644 --- a/src/runtime/server/lib/oauth/keycloak.ts +++ b/src/runtime/server/lib/oauth/keycloak.ts @@ -131,7 +131,7 @@ export function defineOAuthKeycloakEventHandler({ // TODO: improve typing // eslint-disable-next-line @typescript-eslint/no-explicit-any const user: any = await $fetch( - `${realmURL}/protocol/openid-connect/userinfo`, + `${realmURLInternal}/protocol/openid-connect/userinfo`, { headers: { Authorization: `Bearer ${accessToken}`,