I'm working on a React application that integrates...
# general
o
I'm working on a React application that integrates with Ory Hydra for user authentication. I'm having trouble with the response structure returned by the OIDC userinfo endpoint. Here's the relevant code and the issue: React Code: JavaScript const ory = new OidcApi( new Configuration({ basePath:
<http://localhost:4444>
, }) ); async function getUserInfo(accessToken: string) { console.log("Fetching user info..."); console.log(accessToken); const { data } = await ory.getOidcUserInfo({ headers: { Authorization: "Bearer " + accessToken }, }); console.log(data); } Problem: The response object I receive has a different structure than what's described in the Ory documentation: Ory Documentation (https://www.ory.sh/userinfo): My Json Response Data { "amr": ["password"], "aud": ["myclient"], "auth_time": 1710237207, "iat": 1710308756, "iss": "http://localhost:4444", "rat": 1710308756, "sub": "239b48b8-a87e-4fe3-b90a-023232e5a14b" } Are there common reasons for this structure mismatch? Could this be caused by incorrect Ory Hydra configuration? Might this be due to a version difference between my Ory Hydra instance and the documentation ? Is it possible that customizations on the Ory Hydra side are affecting the response?