Skip to content

Commit 67aa321

Browse files
han-linkxatinux
andauthored
fix(keycloak): allow fetch userinfo using internal url (#430)
Co-authored-by: Sébastien Chopin <seb@nuxt.com>
1 parent 60f32d8 commit 67aa321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/server/lib/oauth/keycloak.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export function defineOAuthKeycloakEventHandler({
131131
// TODO: improve typing
132132
// eslint-disable-next-line @typescript-eslint/no-explicit-any
133133
const user: any = await $fetch(
134-
`${realmURL}/protocol/openid-connect/userinfo`,
134+
`${realmURLInternal}/protocol/openid-connect/userinfo`,
135135
{
136136
headers: {
137137
Authorization: `Bearer ${accessToken}`,

0 commit comments

Comments
 (0)